Fixing spec warnings

This commit is contained in:
Sergio Gomes 2013-08-12 16:19:09 +01:00
parent a4ff02e636
commit b95cf48ada
2 changed files with 3 additions and 3 deletions

View File

@ -173,7 +173,7 @@ describe Google::APIClient::ResumableUpload do
def mock_result(status, headers = {})
reference = Google::APIClient::Reference.new(:api_method => @drive.files.insert)
stub('result', :status => status, :headers => headers, :reference => reference)
double('result', :status => status, :headers => headers, :reference => reference)
end
end

View File

@ -34,8 +34,8 @@ describe Google::APIClient::Result do
})
@request = @reference.to_http_request
# Response stub
@response = stub("response")
# Response double
@response = double("response")
@response.stub(:status).and_return(200)
@response.stub(:headers).and_return({
'etag' => '12345',