Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

Modify test to better illustrate point
  • Loading branch information...
commit 9cb57ef35f4eba3fb920b370d42383e758c7f825 2 parents 75ba956 + 7f29082
@marcpeabody marcpeabody authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/about_hashes.rb
View
2  src/about_hashes.rb
@@ -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?
Please sign in to comment.
Something went wrong with that request. Please try again.