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 = {})
|
def mock_result(status, headers = {})
|
||||||
reference = Google::APIClient::Reference.new(:api_method => @drive.files.insert)
|
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
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -34,8 +34,8 @@ describe Google::APIClient::Result do
|
||||||
})
|
})
|
||||||
@request = @reference.to_http_request
|
@request = @reference.to_http_request
|
||||||
|
|
||||||
# Response stub
|
# Response double
|
||||||
@response = stub("response")
|
@response = double("response")
|
||||||
@response.stub(:status).and_return(200)
|
@response.stub(:status).and_return(200)
|
||||||
@response.stub(:headers).and_return({
|
@response.stub(:headers).and_return({
|
||||||
'etag' => '12345',
|
'etag' => '12345',
|
||||||
|
|
Loading…
Reference in New Issue