aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-01-17 22:25:29 -0600
committerJack Nagel2013-01-17 22:29:20 -0600
commit652716423d34942bbd299a81097e6848edc6ea26 (patch)
tree9290fa8eb459330b559468299ef10edb82ca4b03
parent059a0a98f93c208c604359cf223a126ca36eb362 (diff)
downloadhomebrew-652716423d34942bbd299a81097e6848edc6ea26.tar.bz2
Fix JSON smoke test
- Simplify encoding example because hashes are unordered. - Fix broken require
-rw-r--r--Library/Homebrew/test/test_json.rb4
-rw-r--r--Library/Homebrew/vendor/multi_json/adapters/ok_json.rb2
2 files changed, 3 insertions, 3 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
diff --git a/Library/Homebrew/vendor/multi_json/adapters/ok_json.rb b/Library/Homebrew/vendor/multi_json/adapters/ok_json.rb
index 3e36c862e..9d4773849 100644
--- a/Library/Homebrew/vendor/multi_json/adapters/ok_json.rb
+++ b/Library/Homebrew/vendor/multi_json/adapters/ok_json.rb
@@ -1,4 +1,4 @@
-require 'multi_json/vendor/okjson'
+require 'vendor/multi_json/vendor/okjson'
module MultiJson
module Adapters