URI :: InvalidURIError: плохой URI (не URI?), Тестирующий контроллеры Rails
я получилURI::InvalidURIError
тестирование Rails Home контроллера:
require 'test_helper'
class HomeControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get :index
assert_response :success
end
end
получить следующую ошибку:
E
Error:
HomeControllerTest#test_should_get_index:
URI::InvalidURIError: bad URI(is not URI?): http://www.example.com:80index
test/controllers/home_controller_test.rb:7:in `block in <class:HomeControllerTest>'
Стек выглядит следующим образом:
Rails 5.0.0.beta3
minitest (5.8.4)