Namespace
Methods
T
Constants
SessionKey = '_myapp_session'
 
Generator = ActiveSupport::LegacyKeyGenerator.new('b3c631c314c0bbca50c1b2843150fe33')
 
Instance Public methods
test_added_flash_types_method()
# File actionpack/test/controller/flash_test.rb, line 305
def test_added_flash_types_method
  with_test_route_set do
    get '/set_bar'
    assert_response :success
    assert_equal 'for great justice', @controller.bar
  end
end
test_flash()
# File actionpack/test/controller/flash_test.rb, line 268
def test_flash
  with_test_route_set do
    get '/set_flash'
    assert_response :success
    assert_equal "hello", @request.flash["that"]

    get '/use_flash'
    assert_response :success
    assert_equal "flash: hello", @response.body
  end
end
test_setting_flash_does_not_raise_in_following_requests()
# File actionpack/test/controller/flash_test.rb, line 289
def test_setting_flash_does_not_raise_in_following_requests
  with_test_route_set do
    env = { 'action_dispatch.request.flash_hash' => ActionDispatch::Flash::FlashHash.new }
    get '/set_flash', env: env
    get '/set_flash', env: env
  end
end
test_setting_flash_now_does_not_raise_in_following_requests()
# File actionpack/test/controller/flash_test.rb, line 297
def test_setting_flash_now_does_not_raise_in_following_requests
  with_test_route_set do
    env = { 'action_dispatch.request.flash_hash' => ActionDispatch::Flash::FlashHash.new }
    get '/set_flash_now', env: env
    get '/set_flash_now', env: env
  end
end