From 688d69443021f5f413a30beecdb836dc35a8479f Mon Sep 17 00:00:00 2001 From: linc01n Date: Mon, 3 Oct 2011 14:56:23 +0800 Subject: [PATCH] 203/274 --- about_open_classes.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/about_open_classes.rb b/about_open_classes.rb index afef1f9..93ecdaa 100644 --- a/about_open_classes.rb +++ b/about_open_classes.rb @@ -9,7 +9,7 @@ def bark def test_as_defined_dogs_do_bark fido = Dog.new - assert_equal __, fido.bark + assert_equal "WOOF", fido.bark end # ------------------------------------------------------------------ @@ -23,8 +23,8 @@ def wag def test_after_reopening_dogs_can_both_wag_and_bark fido = Dog.new - assert_equal __, fido.wag - assert_equal __, fido.bark + assert_equal "HAPPY", fido.wag + assert_equal "WOOF", fido.bark end # ------------------------------------------------------------------ @@ -36,8 +36,8 @@ def even? end def test_even_existing_built_in_classes_can_be_reopened - assert_equal __, 1.even? - assert_equal __, 2.even? + assert_equal false, 1.even? + assert_equal true, 2.even? end # NOTE: To understand why we need the :: before Integer, you need to