diff options
| author | Jack Nagel | 2013-01-17 22:25:29 -0600 |
|---|---|---|
| committer | Jack Nagel | 2013-01-17 22:29:20 -0600 |
| commit | 652716423d34942bbd299a81097e6848edc6ea26 (patch) | |
| tree | 9290fa8eb459330b559468299ef10edb82ca4b03 /Library/Homebrew/test | |
| parent | 059a0a98f93c208c604359cf223a126ca36eb362 (diff) | |
| download | homebrew-652716423d34942bbd299a81097e6848edc6ea26.tar.bz2 | |
Fix JSON smoke test
- Simplify encoding example because hashes are unordered.
- Fix broken require
Diffstat (limited to 'Library/Homebrew/test')
| -rw-r--r-- | Library/Homebrew/test/test_json.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/test/test_json.rb b/Library/Homebrew/test/test_json.rb index 458cfd123..6bece67c0 100644 --- a/Library/Homebrew/test/test_json.rb +++ b/Library/Homebrew/test/test_json.rb @@ -3,8 +3,8 @@ require 'vendor/multi_json' class JsonSmokeTest < Test::Unit::TestCase def test_encode - hash = { "foo" => ["bar", "baz"], "qux" => 1 } - json = %q|{"foo":["bar","baz"],"qux":1}| + hash = { "foo" => ["bar", "baz"] } + json = %q|{"foo":["bar","baz"]}| assert_equal json, MultiJson.encode(hash) end |
