Fixing spec warnings
This commit is contained in:
parent
a4ff02e636
commit
b95cf48ada
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue