spec/acceptance/realtime/presence_spec.rb in ably-1.0.7 vs spec/acceptance/realtime/presence_spec.rb in ably-1.1.0
- old
+ new
@@ -254,38 +254,38 @@
end
context 'Integer' do
let(:data) { 1 }
- it 'raises an UnsupportedDataType 40011 exception' do
+ it 'raises an UnsupportedDataType 40013 exception' do
expect { presence_action(method_name, data) }.to raise_error(Ably::Exceptions::UnsupportedDataType)
stop_reactor
end
end
context 'Float' do
let(:data) { 1.1 }
- it 'raises an UnsupportedDataType 40011 exception' do
+ it 'raises an UnsupportedDataType 40013 exception' do
expect { presence_action(method_name, data) }.to raise_error(Ably::Exceptions::UnsupportedDataType)
stop_reactor
end
end
context 'Boolean' do
let(:data) { true }
- it 'raises an UnsupportedDataType 40011 exception' do
+ it 'raises an UnsupportedDataType 40013 exception' do
expect { presence_action(method_name, data) }.to raise_error(Ably::Exceptions::UnsupportedDataType)
stop_reactor
end
end
context 'False' do
let(:data) { false }
- it 'raises an UnsupportedDataType 40011 exception' do
+ it 'raises an UnsupportedDataType 40013 exception' do
expect { presence_action(method_name, data) }.to raise_error(Ably::Exceptions::UnsupportedDataType)
stop_reactor
end
end
end
@@ -2297,10 +2297,10 @@
presence_events = []
presence_anonymous_client.subscribe do |presence_message|
presence_events << [presence_message.client_id, presence_message.action.to_sym]
if presence_message.action == :leave
expect(presence_message.id).to be_nil
- expect(presence_message.timestamp.to_f * 1000).to be_within(20).of(Time.now.to_f * 1000)
+ expect(presence_message.timestamp.to_f * 1000).to be_within(200).of(Time.now.to_f * 1000)
end
end
## Fabricate server-initiated SYNC in two parts
action = Ably::Models::ProtocolMessage::ACTION.Sync