Permalink
Browse files

Fix JSON smoke test

 - Simplify encoding example because hashes are unordered.
 - Fix broken require
  • Loading branch information...
1 parent 059a0a9 commit 652716423d34942bbd299a81097e6848edc6ea26 @jacknagel jacknagel committed Jan 18, 2013
Showing with 3 additions and 3 deletions.
  1. +2 −2 Library/Homebrew/test/test_json.rb
  2. +1 −1 Library/Homebrew/vendor/multi_json/adapters/ok_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
@@ -1,4 +1,4 @@
-require 'multi_json/vendor/okjson'
+require 'vendor/multi_json/vendor/okjson'
module MultiJson
module Adapters

0 comments on commit 6527164

Please sign in to comment.