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:
commit
67e67063a4
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue