Skip to content

Commit

Permalink
Add Ruby 3.4's Hash#inspect symbol change for integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
cllns committed Dec 31, 2024
1 parent ff0fde6 commit 25cda30
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions spec/integration/hanami/controller/flash_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ def app
get "/"
follow_redirect!

expect(last_response.body).to match(/{:hello=>"world"}/)
expect(last_response.body).to match(/flash_empty: false/)
if RUBY_VERSION < "3.4"
expect(last_response.body).to match(/{:hello=>"world"}/)
expect(last_response.body).to match(/flash_empty: false/)
else
expect(last_response.body).to match(/{hello: "world"}/)
expect(last_response.body).to match(/flash_empty: false/)
end
end

it "allows to access kept data after redirect" do
Expand Down

0 comments on commit 25cda30

Please sign in to comment.