Skip to content

Commit

Permalink
Fix log entry spec for Ruby 3.4
Browse files Browse the repository at this point in the history
Ruby 3.4 finally adds the new has key syntax into inspect.
Since we still support older Ruby versions we just remove
the expectation of the hash key.
  • Loading branch information
tvdeyen committed Feb 13, 2025
1 parent 169a012 commit cc025c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/spec/models/spree/log_entry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@

expect(details.success?).to eq(true)
expect(details.message).to eq("[WARNING: An error occurred while trying to serialize the payment response] FooBar")
expect(details.params['data']).to include(':bar=>"Symbol keys are not allowed"')
expect(details.params['data']).to include('"Symbol keys are not allowed"')
expect(details.params['error']).to include('Tried to dump unspecified class: Symbol')
end
end
Expand Down

0 comments on commit cc025c3

Please sign in to comment.