1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #14628 from vipulnsward/remove-flash-test-warning

Remove unused `subclass_controller_with_flash_type_bar` var from flash test.
This commit is contained in:
Yves Senn 2014-04-07 08:23:58 +02:00
commit 67e67063a4

View file

@ -229,8 +229,8 @@ class FlashTest < ActionController::TestCase
assert subclass_controller_with_no_flash_type._flash_types.include?(:foo)
end
def test_do_not_add_flash_type_to_parent_class
subclass_controller_with_flash_type_bar = Class.new(TestController) do
def test_does_not_add_flash_type_to_parent_class
Class.new(TestController) do
add_flash_types :bar
end
assert_not TestController._flash_types.include?(:bar)