mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-06 00:03:36 -04:00
Properly fix test failure with Rack 2.1+.
Rack is not to blame, just naive test case which was enough so far. Fixes #1119
This commit is contained in:
parent
5acab36239
commit
6521a1606e
1
Gemfile
1
Gemfile
@ -25,7 +25,6 @@ group :test, :development do
|
||||
gem 'multipart-parser'
|
||||
gem 'net-http-persistent', '~> 3.0'
|
||||
gem 'patron', '>= 0.4.2', platforms: :ruby
|
||||
gem 'rack', '< 2.1'
|
||||
gem 'rack-test', '>= 0.6', require: 'rack/test'
|
||||
gem 'rspec', '~> 3.7'
|
||||
gem 'rspec_junit_formatter', '~> 0.4'
|
||||
|
@ -13,8 +13,8 @@ shared_examples 'a request method' do |http_method|
|
||||
end
|
||||
|
||||
it 'handles headers with multiple values' do
|
||||
request_stub.to_return(headers: { 'Set-Cookie' => 'one, two' })
|
||||
expect(response.headers['set-cookie']).to eq('one, two')
|
||||
request_stub.to_return(headers: { 'Set-Cookie' => 'name=value' })
|
||||
expect(response.headers['set-cookie']).to eq('name=value')
|
||||
end
|
||||
|
||||
it 'retrieves the response headers' do
|
||||
|
Loading…
x
Reference in New Issue
Block a user