class NamedRoutesControllerTest
Public Instance Methods
test_should_be_able_to_use_named_routes_before_a_request_is_done()
click to toggle source
# File actionpack/test/controller/test_case_test.rb, line 1059 def test_should_be_able_to_use_named_routes_before_a_request_is_done with_routing do |set| set.draw { resources :contents } assert_equal "http://test.host/contents/new", new_content_url assert_equal "http://test.host/contents/1", content_url(id: 1) end end