class FlashRedirectTest

Constants

APP
Generator
Routes
SessionKey

Public Instance Methods

app() click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 4981
def app
  APP
end
test_block_redirect_commits_flash() click to toggle source
# File actionpack/test/dispatch/routing_test.rb, line 4987
def test_block_redirect_commits_flash
  get "/foo", env: { "action_dispatch.key_generator" => Generator }
  assert_response :redirect

  follow_redirect!
  assert_equal "bar", response.body
end