aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/test/test_json.rb
diff options
context:
space:
mode:
authorJack Nagel2013-06-22 16:51:08 -0500
committerJack Nagel2013-06-22 21:34:02 -0500
commit163067512bb15e0582ad9d59555697126b9aeac6 (patch)
treef0128fb96018751be17281a59161fe3b72e8ad56 /Library/Homebrew/test/test_json.rb
parente3f061d9900187e0082f17d4e857a55ff8fc4874 (diff)
downloadhomebrew-163067512bb15e0582ad9d59555697126b9aeac6.tar.bz2
Add Utils::JSON to wrap the JSON implementation
Diffstat (limited to 'Library/Homebrew/test/test_json.rb')
-rw-r--r--Library/Homebrew/test/test_json.rb6
1 files changed, 3 insertions, 3 deletions
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