Updated to avoid deprecation of encode and decode methods in multi_json gem.
This commit is contained in:
1 parent
96b697bd5f
commit
c651d69674
6 files changed
+10
-10
No files matched your search
@@ -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'
|
||||
|
||||
Reference in new issue
Block a user