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

- old
+ new

@@ -94,12 +94,11 @@ publish_and_check_extras 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 Array' do publish_and_check_extras data end end @@ -656,11 +655,10 @@ it 'publishes the message again, later receives the ACK and only one message is ever received from Ably' do on_reconnected = lambda do |*args| expect(message_state).to be_empty EventMachine.add_timer(2) do expect(message_state).to contain_exactly(:delivered) - # TODO: Uncomment once issue realtime#42 is resolved - # expect(msgs_received.length).to eql(1) + expect(msgs_received.length).to eql(1) stop_reactor end end connection.once(:connected) do