Skip to content

Commit

Permalink
libgraphqlparser: don't require json
Browse files Browse the repository at this point in the history
  • Loading branch information
bfontaine committed Jan 6, 2016
1 parent dfa42e0 commit c165210
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Formula/libgraphqlparser.rb
Expand Up @@ -21,7 +21,7 @@ def install
end

test do
require "json"
require "utils/json"

sample_query = <<-EOS.undent
{ user }
Expand Down Expand Up @@ -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

0 comments on commit c165210

Please sign in to comment.