spec/acceptance/realtime/message_spec.rb in ably-0.8.2 vs spec/acceptance/realtime/message_spec.rb in ably-0.8.3
- old
+ new
@@ -77,39 +77,39 @@
context 'with unsupported data payload content type' do
context 'Integer' do
let(:data) { 1 }
- it 'is raises an UnsupportedDataTypeError 40011 exception' do
- expect { channel.publish 'event', data }.to raise_error(Ably::Exceptions::UnsupportedDataTypeError)
+ it 'is raises an UnsupportedDataType 40011 exception' do
+ expect { channel.publish 'event', data }.to raise_error(Ably::Exceptions::UnsupportedDataType)
stop_reactor
end
end
context 'Float' do
let(:data) { 1.1 }
- it 'is raises an UnsupportedDataTypeError 40011 exception' do
- expect { channel.publish 'event', data }.to raise_error(Ably::Exceptions::UnsupportedDataTypeError)
+ it 'is raises an UnsupportedDataType 40011 exception' do
+ expect { channel.publish 'event', data }.to raise_error(Ably::Exceptions::UnsupportedDataType)
stop_reactor
end
end
context 'Boolean' do
let(:data) { true }
- it 'is raises an UnsupportedDataTypeError 40011 exception' do
- expect { channel.publish 'event', data }.to raise_error(Ably::Exceptions::UnsupportedDataTypeError)
+ it 'is raises an UnsupportedDataType 40011 exception' do
+ expect { channel.publish 'event', data }.to raise_error(Ably::Exceptions::UnsupportedDataType)
stop_reactor
end
end
context 'False' do
let(:data) { false }
- it 'is raises an UnsupportedDataTypeError 40011 exception' do
- expect { channel.publish 'event', data }.to raise_error(Ably::Exceptions::UnsupportedDataTypeError)
+ it 'is raises an UnsupportedDataType 40011 exception' do
+ expect { channel.publish 'event', data }.to raise_error(Ably::Exceptions::UnsupportedDataType)
stop_reactor
end
end
end
@@ -130,9 +130,10 @@
context 'when the message publisher has a client_id' do
let(:client_id) { random_str }
let(:client_options) { default_options.merge(client_id: client_id) }
it 'contains a #client_id attribute' do
+ skip 'Waiting for issue #256 to be resolved'
when_all(channel.attach, other_client_channel.attach) do
other_client_channel.subscribe('event') do |message|
expect(message.client_id).to eql(client_id)
stop_reactor
end