Skip to content

Commit 8e5a77b

Browse files
committed
Fix a couple spec failures on Ruby 3.4.0-preview2
These are both related to the change in Hash#inspect.
1 parent 35b7310 commit 8e5a77b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/rack/test_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -451,14 +451,14 @@ def closed?
451451
get '/redirect', {}, 'rack.session' => { 'foo' => 'bar' }
452452
follow_redirect!
453453

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

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

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

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

0 commit comments

Comments
 (0)