From b5687424287760f9b6a76a8c26c80d5edda517a8 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 17 Jan 2013 22:25:29 -0600 Subject: [PATCH] Fix JSON smoke test - Simplify encoding example because hashes are unordered. - Fix broken require --- Library/Homebrew/test/test_json.rb | 4 ++-- Library/Homebrew/vendor/multi_json/adapters/ok_json.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/test/test_json.rb b/Library/Homebrew/test/test_json.rb index 458cfd123a..6bece67c00 100644 --- a/Library/Homebrew/test/test_json.rb +++ b/Library/Homebrew/test/test_json.rb @@ -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 diff --git a/Library/Homebrew/vendor/multi_json/adapters/ok_json.rb b/Library/Homebrew/vendor/multi_json/adapters/ok_json.rb index 3e36c862eb..9d47738495 100644 --- a/Library/Homebrew/vendor/multi_json/adapters/ok_json.rb +++ b/Library/Homebrew/vendor/multi_json/adapters/ok_json.rb @@ -1,4 +1,4 @@ -require 'multi_json/vendor/okjson' +require 'vendor/multi_json/vendor/okjson' module MultiJson module Adapters