Methods
S
T
Instance Public methods
setup()
# File activesupport/test/rescuable_test.rb, line 102
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 133
def test_children_should_inherit_rescue_definitions_from_parents_and_child_rescue_should_be_appended
  expected = ["WraithAttack", "WraithAttack", "NuclearExplosion", "MadRonon", "WeirdError", "CoolError"]
  result = @cool_stargate.send(:rescue_handlers).collect(&:first)
  assert_equal expected, result
end
test_rescue_falls_back_to_exception_cause()
# File activesupport/test/rescuable_test.rb, line 139
def test_rescue_falls_back_to_exception_cause
  @stargate.dispatch :fall_back_to_cause
  assert_equal 'unhandled RuntimeError with a handleable cause', @stargate.result
end
test_rescue_from_error_dispatchers_with_case_operator()
# File activesupport/test/rescuable_test.rb, line 122
def test_rescue_from_error_dispatchers_with_case_operator
  @stargate.dispatch :weird
  assert_equal 'weird', @stargate.result
end
test_rescue_from_with_block()
# File activesupport/test/rescuable_test.rb, line 112
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 117
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 107
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 127
def test_rescues_defined_later_are_added_at_end_of_the_rescue_handlers_array
  expected = ["WraithAttack", "WraithAttack", "NuclearExplosion", "MadRonon", "WeirdError"]
  result = @stargate.send(:rescue_handlers).collect(&:first)
  assert_equal expected, result
end