mirror of
https://github.com/jnunemaker/httparty
synced 2023-03-27 23:23:07 -04:00
Merge pull request #360 from rusikf/patch-10
Fix specs to RSpec 3.1.7 syntax with Transpec
This commit is contained in:
commit
987a1cb816
2 changed files with 4 additions and 4 deletions
|
@ -26,7 +26,7 @@ RSpec.describe Net::HTTPHeader::DigestAuthenticator do
|
|||
end
|
||||
|
||||
it "should set cookie header" do
|
||||
cookie_header.should include('custom-cookie=1234567')
|
||||
expect(cookie_header).to include('custom-cookie=1234567')
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -38,7 +38,7 @@ RSpec.describe Net::HTTPHeader::DigestAuthenticator do
|
|||
end
|
||||
|
||||
it "should set empty cookie header array" do
|
||||
cookie_header.should eql []
|
||||
expect(cookie_header).to eql []
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -146,7 +146,7 @@ RSpec.describe HTTParty::Request do
|
|||
@request.send(:setup_raw_request)
|
||||
|
||||
raw_request = @request.instance_variable_get(:@raw_request)
|
||||
raw_request.instance_variable_get(:@header)['cookie'].should eql ["custom-cookie=1234567"]
|
||||
expect(raw_request.instance_variable_get(:@header)['cookie']).to eql ["custom-cookie=1234567"]
|
||||
end
|
||||
|
||||
it 'should merge cookies from setup_digest_auth and request' do
|
||||
|
@ -161,7 +161,7 @@ RSpec.describe HTTParty::Request do
|
|||
@request.send(:setup_raw_request)
|
||||
|
||||
raw_request = @request.instance_variable_get(:@raw_request)
|
||||
raw_request.instance_variable_get(:@header)['cookie'].should eql ['request-cookie=test', 'custom-cookie=1234567']
|
||||
expect(raw_request.instance_variable_get(:@header)['cookie']).to eql ['request-cookie=test', 'custom-cookie=1234567']
|
||||
end
|
||||
|
||||
it 'should use body_stream when configured' do
|
||||
|
|
Loading…
Reference in a new issue