Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Test that rescue_from accepts a class name in String

  • Loading branch information...
commit 740d363890522ab219c9da6da3f23f21ea779bee 1 parent ffd0dd3
@amatsuda amatsuda authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  activesupport/test/rescuable_test.rb
View
3  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 @@ def test_children_should_inherit_rescue_defintions_from_parents_and_child_rescue
result = @cool_stargate.send(:rescue_handlers).collect {|e| e.first}
assert_equal expected, result
end
-
end
Please sign in to comment.
Something went wrong with that request. Please try again.