Skip to content

Commit

Permalink
Properly fix test failure with Rack 2.1+.
Browse files Browse the repository at this point in the history
Rack is not to blame, just naive test case which was enough so far.

Fixes #1119
  • Loading branch information
voxik authored and olleolleolle committed Jul 24, 2020
1 parent 5acab36 commit 6521a16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Gemfile
Expand Up @@ -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'
Expand Down
4 changes: 2 additions & 2 deletions spec/support/shared_examples/request_method.rb
Expand Up @@ -13,8 +13,8 @@
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
Expand Down

0 comments on commit 6521a16

Please sign in to comment.