Use HTTPClient instead of Net::HTTP
This commit is contained in:
1 parent
c102c571e0
commit
e8481dd14d
8 files changed
+126
-14
No files matched your search
@@ -37,12 +37,4 @@ RSpec.describe Google::Apis::RequestOptions do
|
||||
it 'should allow nil in merge' do
|
||||
expect(options.merge(nil)).to be_an_instance_of(Google::Apis::RequestOptions)
|
||||
end
|
||||
|
||||
it 'should override default options' do
|
||||
Google::Apis::RequestOptions.default.header = 'Content-Length: 50'
|
||||
opts = Google::Apis::RequestOptions.new
|
||||
opts.header = 'Content-Length: 70'
|
||||
expect(options.merge(opts).header).to eq 'Content-Length: 70'
|
||||
end
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user