Migrated to MultiJson from JSON gem.

This commit is contained in:
Bob Aman committed 2012-01-05 13:05:56 +03:00
1 parent 04ec835ca1
commit 0bc3d4936b
9 files changed
+16 -16

No files matched your search

+2 -2
View File
@@ -14,7 +14,7 @@
require 'spec_helper'
require 'json'
require 'multi_json'
require 'signet/oauth_1/client'
require 'httpadapter/adapters/net_http'
@@ -298,7 +298,7 @@ describe Google::APIClient do
result = @client.execute(
@prediction.training.insert,
{},
JSON.generate({"id" => "bucket/object"}),
MultiJson.encode({"id" => "bucket/object"}),
{'Content-Type' => 'application/json'}
)
method, uri, headers, body = result.request
@@ -14,7 +14,7 @@
require 'spec_helper'
require 'json'
require 'multi_json'
require 'google/api_client/parsers/json_parser'
require 'google/api_client/parsers/json/error_parser'
require 'google/api_client/parsers/json/pagination'