spec/acceptance/rest/message_spec.rb in ably-1.1.1 vs spec/acceptance/rest/message_spec.rb in ably-1.1.2

- old
+ new

@@ -73,11 +73,10 @@ expect(channel.history.items.first.extras).to eql(data) end end context 'JSON Array' do - # TODO: Add nil type back in - let(:data) { { 'push' => { 'data' => { 'key' => [ true, false, 55, 'string', { 'Hash' => true }, ['array'] ] } } } } + let(:data) { { 'push' => { 'data' => { 'key' => [ true, false, 55, nil, 'string', { 'Hash' => true }, ['array'] ] } } } } it 'is encoded and decoded to the same deep multi-type object' do channel.publish 'event', {}, extras: data expect(channel.history.items.first.extras).to eql(data) end