Permalink
Browse files

Test that rescue_from accepts a class name in String

  • Loading branch information...
1 parent ffd0dd3 commit 740d363890522ab219c9da6da3f23f21ea779bee @amatsuda amatsuda committed Jan 23, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 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

0 comments on commit 740d363

Please sign in to comment.