From a44d7107df9b71f747bb0075df05ce9dcac05822 Mon Sep 17 00:00:00 2001 From: Vipul A M Date: Mon, 7 Apr 2014 10:34:17 +0530 Subject: [PATCH] Remove unused `subclass_controller_with_flash_type_bar` var from flash test. --- actionpack/test/controller/flash_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actionpack/test/controller/flash_test.rb b/actionpack/test/controller/flash_test.rb index ff5587d768..3720a920d0 100644 --- a/actionpack/test/controller/flash_test.rb +++ b/actionpack/test/controller/flash_test.rb @@ -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)