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

Remove unused subclass_controller_with_flash_type_bar var from flash test.

This commit is contained in:
Vipul A M 2014-04-07 10:34:17 +05:30
parent 39a54c648d
commit a44d7107df

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)