class TestGenerationPrefix::EngineMountedAtRoot
Public Instance Methods
app()
click to toggle source
# File actionpack/test/dispatch/prefix_generation_test.rb, line 383 def app QuailsApplication.instance end
Private Instance Methods
expected_redirect_body(url)
click to toggle source
# File actionpack/test/dispatch/prefix_generation_test.rb, line 459 def expected_redirect_body(url) %(<html><body>You are being <a href="#{url}">redirected</a>.</body></html>) end
verify_redirect(url, status = 301)
click to toggle source
# File actionpack/test/dispatch/prefix_generation_test.rb, line 453 def verify_redirect(url, status = 301) assert_equal status, response.status assert_equal url, response.headers["Location"] assert_equal expected_redirect_body(url), response.body end