aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_json.rb
diff options
context:
space:
mode:
authorJack Nagel2013-01-17 22:25:29 -0600
committerJack Nagel2013-01-17 22:29:20 -0600
commit652716423d34942bbd299a81097e6848edc6ea26 (patch)
tree9290fa8eb459330b559468299ef10edb82ca4b03 /Library/Homebrew/test/test_json.rb
parent059a0a98f93c208c604359cf223a126ca36eb362 (diff)
downloadhomebrew-652716423d34942bbd299a81097e6848edc6ea26.tar.bz2
Fix JSON smoke test
- Simplify encoding example because hashes are unordered. - Fix broken require
Diffstat (limited to 'Library/Homebrew/test/test_json.rb')
-rw-r--r--Library/Homebrew/test/test_json.rb4
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