Fix JSON smoke test
- Simplify encoding example because hashes are unordered. - Fix broken require
This commit is contained in:
parent
6b59e610f0
commit
b568742428
@ -3,8 +3,8 @@ require 'vendor/multi_json'
|
|||||||
|
|
||||||
class JsonSmokeTest < Test::Unit::TestCase
|
class JsonSmokeTest < Test::Unit::TestCase
|
||||||
def test_encode
|
def test_encode
|
||||||
hash = { "foo" => ["bar", "baz"], "qux" => 1 }
|
hash = { "foo" => ["bar", "baz"] }
|
||||||
json = %q|{"foo":["bar","baz"],"qux":1}|
|
json = %q|{"foo":["bar","baz"]}|
|
||||||
assert_equal json, MultiJson.encode(hash)
|
assert_equal json, MultiJson.encode(hash)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
require 'multi_json/vendor/okjson'
|
require 'vendor/multi_json/vendor/okjson'
|
||||||
|
|
||||||
module MultiJson
|
module MultiJson
|
||||||
module Adapters
|
module Adapters
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user