class UrlForApiTest
Public Instance Methods
setup()
click to toggle source
Calls superclass method
# File actionpack/test/controller/api/url_for_test.rb, line 13 def setup super @request.host = "www.example.com" end
test_url_for()
click to toggle source
# File actionpack/test/controller/api/url_for_test.rb, line 18 def test_url_for get :one assert_equal "http://www.example.com/url_for_api/one", @controller.url_for end