class TestGenerationPrefix::WithMountedEngine

Attributes

app_object[R]
engine_object[R]

Public Instance Methods

app() click to toggle source
# File actionpack/test/dispatch/prefix_generation_test.rb, line 139
def app
  QuailsApplication.instance
end
setup() click to toggle source
# File actionpack/test/dispatch/prefix_generation_test.rb, line 145
def setup
  QuailsApplication.routes.default_url_options = {}
  @engine_object = EngineObject.new
  @app_object = AppObject.new
end

Private Instance Methods

expected_redirect_body(url) click to toggle source
# File actionpack/test/dispatch/prefix_generation_test.rb, line 330
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 324
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