Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix JSON smoke test

 - Simplify encoding example because hashes are unordered.
 - Fix broken require
  • Loading branch information...
commit 652716423d34942bbd299a81097e6848edc6ea26 1 parent 059a0a9
@jacknagel jacknagel authored
View
4 Library/Homebrew/test/test_json.rb
@@ -3,8 +3,8 @@
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
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.