aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-04-07 08:23:58 +0200
committerYves Senn <yves.senn@gmail.com>2014-04-07 08:23:58 +0200
commit67e67063a4a39530ec0f49d979edb7c2897b8280 (patch)
treea4f1cfe67a318189bc477181b5b93247e51dbd4d /actionpack
parent89ca9ddf0c889343051729e58710a6cf48001d6f (diff)
parenta44d7107df9b71f747bb0075df05ce9dcac05822 (diff)
downloadrails-67e67063a4a39530ec0f49d979edb7c2897b8280.tar.gz
rails-67e67063a4a39530ec0f49d979edb7c2897b8280.tar.bz2
rails-67e67063a4a39530ec0f49d979edb7c2897b8280.zip
Merge pull request #14628 from vipulnsward/remove-flash-test-warning
Remove unused `subclass_controller_with_flash_type_bar` var from flash test.
Diffstat (limited to 'actionpack')
-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)