Updated to avoid deprecation of encode and decode methods in multi_json gem.

This commit is contained in:
Bob Aman committed 2012-04-24 14:39:25 +03:00
1 parent 96b697bd5f
commit c651d69674
6 files changed
+10 -10

No files matched your search

+1 -1
View File
@@ -289,7 +289,7 @@ describe Google::APIClient do
result = @client.execute(
@prediction.training.insert,
{},
MultiJson.encode({"id" => "bucket/object"}),
MultiJson.dump({"id" => "bucket/object"}),
{'Content-Type' => 'application/json'}
)
result.request.headers['Content-Type'].should == 'application/json'