Methods
S
T
Instance Public methods
setup()
# File activesupport/test/rescuable_test.rb, line 74
def setup
  @stargate = Stargate.new
  @cool_stargate = CoolStargate.new
end
test_children_should_inherit_rescue_definitions_from_parents_and_child_rescue_should_be_appended()
# File activesupport/test/rescuable_test.rb, line 100
def test_children_should_inherit_rescue_definitions_from_parents_and_child_rescue_should_be_appended
  expected = ["WraithAttack", "WraithAttack", "NuclearExplosion", "MadRonon", "CoolError"]
  result = @cool_stargate.send(:rescue_handlers).collect {|e| e.first}
  assert_equal expected, result
end
test_rescue_from_with_block()
# File activesupport/test/rescuable_test.rb, line 84
def test_rescue_from_with_block
  @stargate.dispatch :nuke
  assert_equal 'alldead', @stargate.result
end
test_rescue_from_with_block_with_args()
# File activesupport/test/rescuable_test.rb, line 89
def test_rescue_from_with_block_with_args
  @stargate.dispatch :ronanize
  assert_equal 'dex', @stargate.result
end
test_rescue_from_with_method()
# File activesupport/test/rescuable_test.rb, line 79
def test_rescue_from_with_method
  @stargate.dispatch :attack
  assert_equal 'killed', @stargate.result
end
test_rescues_defined_later_are_added_at_end_of_the_rescue_handlers_array()
# File activesupport/test/rescuable_test.rb, line 94
def test_rescues_defined_later_are_added_at_end_of_the_rescue_handlers_array
  expected = ["WraithAttack", "WraithAttack", "NuclearExplosion", "MadRonon"]
  result = @stargate.send(:rescue_handlers).collect {|e| e.first}
  assert_equal expected, result
end