Fix JSON smoke test

- Simplify encoding example because hashes are unordered.
 - Fix broken require
This commit is contained in:
Jack Nagel 2013-01-17 22:25:29 -06:00
parent 6b59e610f0
commit b568742428
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -1,4 +1,4 @@
require 'multi_json/vendor/okjson'
require 'vendor/multi_json/vendor/okjson'
module MultiJson
module Adapters