Test that rescue_from accepts a class name in String

This commit is contained in:
Akira Matsuda 2013-01-23 09:01:30 +09:00
parent ffd0dd31f8
commit 740d363890

@ -21,7 +21,7 @@ class Stargate
rescue_from WraithAttack, :with => :sos rescue_from WraithAttack, :with => :sos
rescue_from NuclearExplosion do rescue_from 'NuclearExplosion' do
@result = 'alldead' @result = 'alldead'
end 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} result = @cool_stargate.send(:rescue_handlers).collect {|e| e.first}
assert_equal expected, result assert_equal expected, result
end end
end end