Permalink
Browse files

Merge pull request #77 from thebinarypenguin/about-hashes-bonus-question

Modify test to better illustrate point
  • Loading branch information...
2 parents 75ba956 + 7f29082 commit 9cb57ef35f4eba3fb920b370d42383e758c7f825 @marcpeabody marcpeabody 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 9cb57ef

Please sign in to comment.