Evaluated each assert line without a replacement test specified.

This commit is contained in:
Jim Weirich
2010-09-27 13:38:50 -04:00
parent 012cb20bb3
commit 17fb071814
13 changed files with 53 additions and 47 deletions

View File

@@ -22,12 +22,12 @@ class AboutExceptions < EdgeCase::Koan
assert_equal __(:exception_handled), result
assert ex.is_a?(StandardError), "Failure message."
assert ex.is_a?(RuntimeError), "Failure message."
assert ex.is_a?(___(StandardError)), "Failure message."
assert ex.is_a?(___(RuntimeError)), "Failure message."
assert RuntimeError.ancestors.include?(StandardError),
assert RuntimeError.ancestors.include?(StandardError), # __
"RuntimeError is a subclass of StandardError"
assert_equal __("Oops"), ex.message
end
@@ -58,7 +58,7 @@ class AboutExceptions < EdgeCase::Koan
end
# Sometimes, we must know about the unknown
def test_asserting_an_error_is_raised
def test_asserting_an_error_is_raised # __
# A do-end is a block, a topic to explore more later
assert_raise(___(MySpecialError)) do
raise MySpecialError.new("New instances can be raised directly.")