Skip to content

Commit

Permalink
Merge pull request #435 from ably/msg-extras-float
Browse files Browse the repository at this point in the history
spec: Don't expect integers to round-trip through msg.extras
  • Loading branch information
lmars authored Sep 2, 2024
2 parents 85687a1 + ca52a1d commit 5a9e7bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/acceptance/realtime/message_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def publish_and_check_extras(extras)
end

context 'JSON Array' do
let(:data) { { 'push' => { 'data' => { 'key' => [ true, false, 55, nil, 'string', { 'Hash' => true }, ['array'] ] } } } }
let(:data) { { 'push' => { 'data' => { 'key' => [ true, false, 55.1, nil, 'string', { 'Hash' => true }, ['array'] ] } } } }

it 'is encoded and decoded to the same Array' do
publish_and_check_extras data
Expand Down

0 comments on commit 5a9e7bc

Please sign in to comment.