Permalink
Browse files

Modify test to better illustrate point

  • Loading branch information...
1 parent 75ba956 commit 7f29082e95c894ea94c8eb4d1db15d07dd1ba671 @thebinarypenguin thebinarypenguin committed Jun 5, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/about_hashes.rb
View
@@ -37,7 +37,7 @@ def test_changing_hashes
hash[:one] = "eins"
expected = { :one => __("eins"), :two => "dos" }
- assert_equal __(true), expected == hash
+ assert_equal __(expected), hash
# Bonus Question: Why was "expected" broken out into a variable
# rather than used as a literal?

0 comments on commit 7f29082

Please sign in to comment.