spec/acceptance/rest/message_spec.rb in ably-0.8.2 vs spec/acceptance/rest/message_spec.rb in ably-0.8.3

- old
+ new

@@ -63,35 +63,35 @@ 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) 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) 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) 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) end end end describe 'encryption and encoding' do