Skip to content

Commit 589f092

Browse files
committed
test nil used in few default method
1 parent 442c18d commit 589f092

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎about_nil.rb‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ def test_you_dont_get_null_pointer_errors_when_calling_methods_on_nil
2222
end
2323

2424
def test_nil_has_a_few_methods_defined_on_it
25-
assert_equal __, nil.nil?
26-
assert_equal __, nil.to_s
27-
assert_equal __, nil.inspect
25+
assert_equal true, nil.nil?
26+
assert_equal "", nil.to_s
27+
assert_equal "nil", nil.inspect
2828

2929
# THINK ABOUT IT:
3030
#

0 commit comments

Comments
 (0)