From 083b3c84d08571dda76e4d9ec553492ca60b8db3 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Sat, 22 Jun 2013 16:51:08 -0500 Subject: Add Utils::JSON to wrap the JSON implementation --- Library/Homebrew/test/test_json.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Library/Homebrew/test') diff --git a/Library/Homebrew/test/test_json.rb b/Library/Homebrew/test/test_json.rb index 6bece67c0..f77b7852d 100644 --- a/Library/Homebrew/test/test_json.rb +++ b/Library/Homebrew/test/test_json.rb @@ -1,16 +1,16 @@ require 'testing_env' -require 'vendor/multi_json' +require 'utils/json' class JsonSmokeTest < Test::Unit::TestCase def test_encode hash = { "foo" => ["bar", "baz"] } json = %q|{"foo":["bar","baz"]}| - assert_equal json, MultiJson.encode(hash) + assert_equal json, Utils::JSON.dump(hash) end def test_decode hash = { "foo" => ["bar", "baz"], "qux" => 1 } json = %q|{"foo":["bar","baz"],"qux":1}| - assert_equal hash, MultiJson.decode(json) + assert_equal hash, Utils::JSON.load(json) end end -- cgit v1.2.3