Skip to content

Commit

Permalink
Fix a couple spec failures on Ruby 3.4.0-preview2
Browse files Browse the repository at this point in the history
These are both related to the change in Hash#inspect.
  • Loading branch information
jeremyevans committed Oct 7, 2024
1 parent 35b7310 commit 8e5a77b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/rack/test_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -451,14 +451,14 @@ def closed?
get '/redirect', {}, 'rack.session' => { 'foo' => 'bar' }
follow_redirect!

last_response.body.must_include 'session {"foo"=>"bar"}'
last_response.body.must_match(/session \{"foo" ?=> ?"bar"\}/)
end

it 'includes session options when following the redirect' do
get '/redirect', {}, 'rack.session.options' => { 'foo' => 'bar' }
follow_redirect!

last_response.body.must_include 'session {} with options {"foo"=>"bar"}'
last_response.body.must_match(/session \{\} with options \{"foo" ?=> ?"bar"\}/)
end

it 'raises an error if the last_response is not set' do
Expand Down

0 comments on commit 8e5a77b

Please sign in to comment.