From c165210513545f63288c19dd47fe151b4553dd3e Mon Sep 17 00:00:00 2001 From: Baptiste Fontaine Date: Wed, 6 Jan 2016 21:38:35 +0100 Subject: [PATCH] libgraphqlparser: don't require json --- Formula/libgraphqlparser.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/libgraphqlparser.rb b/Formula/libgraphqlparser.rb index 5c1f740f98460..fd835e93d6b6b 100644 --- a/Formula/libgraphqlparser.rb +++ b/Formula/libgraphqlparser.rb @@ -21,7 +21,7 @@ def install end test do - require "json" + require "utils/json" sample_query = <<-EOS.undent { user } @@ -49,7 +49,7 @@ def install "directives"=>nil, "selectionSet"=>nil, }], }, }], } - test_ast = JSON.parse(pipe_output("#{libexec}/dump_json_ast", sample_query)) + test_ast = Utils::JSON.load pipe_output("#{libexec}/dump_json_ast", sample_query) assert_equal sample_ast, test_ast end end