From 3958b3c9e5b4c31c37a48b44f8d98b1d843f8fcf Mon Sep 17 00:00:00 2001 From: Jim Weirich Date: Tue, 22 Dec 2009 22:31:55 -0500 Subject: [PATCH] Updated first test to properly fail on the first run. --- koans/about_asserts.rb | 2 +- src/about_asserts.rb | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/koans/about_asserts.rb b/koans/about_asserts.rb index e99bcf3..53a42aa 100644 --- a/koans/about_asserts.rb +++ b/koans/about_asserts.rb @@ -7,7 +7,7 @@ class AboutAsserts < EdgeCase::Koan # We shall contemplate truth by testing reality, via asserts. def test_assert_truth - assert true # This should be true + assert false # This should be true end # Enlightenment may be more easily achieved with appropriate diff --git a/src/about_asserts.rb b/src/about_asserts.rb index 8304f71..37253d4 100644 --- a/src/about_asserts.rb +++ b/src/about_asserts.rb @@ -7,7 +7,14 @@ class AboutAsserts < EdgeCase::Koan # We shall contemplate truth by testing reality, via asserts. def test_assert_truth + #-- assert true # This should be true + if false + #++ + assert false # This should be true + #-- + end + #++ end # Enlightenment may be more easily achieved with appropriate