aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2014-04-07 10:34:17 +0530
committerVipul A M <vipulnsward@gmail.com>2014-04-07 10:34:17 +0530
commita44d7107df9b71f747bb0075df05ce9dcac05822 (patch)
treee3329d6fac4a15e778b0264d393f0e154f910264 /actionpack/test
parent39a54c648dfed1599479e33766d2e0c96b19654d (diff)
downloadrails-a44d7107df9b71f747bb0075df05ce9dcac05822.tar.gz
rails-a44d7107df9b71f747bb0075df05ce9dcac05822.tar.bz2
rails-a44d7107df9b71f747bb0075df05ce9dcac05822.zip
Remove unused `subclass_controller_with_flash_type_bar` var from flash test.
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/flash_test.rb4
1 files 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)