Skip to content

Commit

Permalink
203/274
Browse files Browse the repository at this point in the history
  • Loading branch information
linc01n committed Oct 3, 2011
1 parent b298110 commit 688d694
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions about_open_classes.rb
Expand Up @@ -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

# ------------------------------------------------------------------
Expand All @@ -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

# ------------------------------------------------------------------
Expand All @@ -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
Expand Down

0 comments on commit 688d694

Please sign in to comment.