aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2013-01-23 09:01:30 +0900
committerAkira Matsuda <ronnie@dio.jp>2013-01-23 13:29:40 +0900
commit740d363890522ab219c9da6da3f23f21ea779bee (patch)
tree902c31b46a768403cc1edad0b57de73be3e82485
parentffd0dd31f8065903471895bf95ade061a488142b (diff)
downloadrails-740d363890522ab219c9da6da3f23f21ea779bee.tar.gz
rails-740d363890522ab219c9da6da3f23f21ea779bee.tar.bz2
rails-740d363890522ab219c9da6da3f23f21ea779bee.zip
Test that rescue_from accepts a class name in String
-rw-r--r--activesupport/test/rescuable_test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activesupport/test/rescuable_test.rb b/activesupport/test/rescuable_test.rb
index 3f8d09c18e..e099e47e0e 100644
--- a/activesupport/test/rescuable_test.rb
+++ b/activesupport/test/rescuable_test.rb
@@ -21,7 +21,7 @@ class Stargate
rescue_from WraithAttack, :with => :sos
- rescue_from NuclearExplosion do
+ rescue_from 'NuclearExplosion' do
@result = 'alldead'
end
@@ -102,5 +102,4 @@ class RescuableTest < ActiveSupport::TestCase
result = @cool_stargate.send(:rescue_handlers).collect {|e| e.first}
assert_equal expected, result
end
-
end