diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-06 15:16:41 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2012-01-06 15:17:08 -0800 |
commit | f65559fcc2745afcbfc03dd8b25ec9187f162029 (patch) | |
tree | 4b8040dda633d31caf192571c832491bc9428108 | |
parent | 056b8386d06de5b6a864562f3f0b88ba4b4424a8 (diff) | |
download | rails-f65559fcc2745afcbfc03dd8b25ec9187f162029.tar.gz rails-f65559fcc2745afcbfc03dd8b25ec9187f162029.tar.bz2 rails-f65559fcc2745afcbfc03dd8b25ec9187f162029.zip |
make sure the test case name is nil
-rw-r--r-- | activesupport/test/test_case_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activesupport/test/test_case_test.rb b/activesupport/test/test_case_test.rb index 20982d089d..e5b5547478 100644 --- a/activesupport/test/test_case_test.rb +++ b/activesupport/test/test_case_test.rb @@ -20,6 +20,10 @@ module ActiveSupport def test_callback_with_exception tc = Class.new(TestCase) do + def self.name + nil + end + setup :bad_callback def bad_callback; raise 'oh noes' end def test_true; assert true end @@ -39,6 +43,10 @@ module ActiveSupport def test_teardown_callback_with_exception tc = Class.new(TestCase) do + def self.name + nil + end + teardown :bad_callback def bad_callback; raise 'oh noes' end def test_true; assert true end |