Fixed incompatibilities with Ruby 1.8.6

git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@71 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
This commit is contained in:
Bob Aman committed 2010-10-13 21:16:07 +00:00
1 parent 61fc497f2c
commit 5572a73fdf
4 files changed
+19 -13

No files matched your search

+2 -2
View File
@@ -173,7 +173,7 @@ describe Google::APIClient, 'configured for the prediction API' do
method.should == 'POST'
uri.should ==
'https://www.googleapis.com/prediction/v1/training?query=12345'
Hash[headers].should == {}
(headers.inject({}) { |h,(k,v)| h[k]=v; h }).should == {}
body.should respond_to(:each)
end
@@ -207,7 +207,7 @@ describe Google::APIClient, 'configured for the prediction API' do
{'query' => '12345'}
)
method, uri, headers, body = request
headers = Hash[headers]
headers = headers.inject({}) { |h,(k,v)| h[k]=v; h }
headers.keys.should include('Authorization')
headers['Authorization'].should =~ /^OAuth/
end