spec/acceptance/realtime/connection_spec.rb in ably-1.0.7 vs spec/acceptance/realtime/connection_spec.rb in ably-1.1.0
- old
+ new
@@ -1470,11 +1470,11 @@
it 'moves the channels into the suspended state and prevents publishing of messages on those channels' do
channel.attach do
channel.once(:suspended) do
channel.publish('test').errback do |error|
- expect(error).to be_a(Ably::Exceptions::MessageQueueingDisabled)
+ expect(error).to be_a(Ably::Exceptions::ChannelInactive)
stop_reactor
end
end
close_connection_proc = lambda do
@@ -1730,20 +1730,20 @@
context 'version params' do
it 'sends the protocol version param v (#G4, #RTN2f)' do
expect(EventMachine).to receive(:connect) do |host, port, transport, object, url|
uri = URI.parse(url)
- expect(CGI::parse(uri.query)['v'][0]).to eql('1.0')
+ expect(CGI::parse(uri.query)['v'][0]).to eql('1.1')
stop_reactor
end
client
end
it 'sends the lib version param lib (#RTN2g)' do
expect(EventMachine).to receive(:connect) do |host, port, transport, object, url|
uri = URI.parse(url)
- expect(CGI::parse(uri.query)['lib'][0]).to match(/^ruby-1\.0\.\d+(-[\w\.]+)?+$/)
+ expect(CGI::parse(uri.query)['lib'][0]).to match(/^ruby-1\.1\.\d+(-[\w\.]+)?+$/)
stop_reactor
end
client
end
@@ -1759,10 +1759,10 @@
end
it 'sends the lib version param lib with the variant (#RTN2g + #RSC7b)' do
expect(EventMachine).to receive(:connect) do |host, port, transport, object, url|
uri = URI.parse(url)
- expect(CGI::parse(uri.query)['lib'][0]).to match(/^ruby-#{variant}-1\.0\.\d+(-[\w\.]+)?$/)
+ expect(CGI::parse(uri.query)['lib'][0]).to match(/^ruby-#{variant}-1\.1\.\d+(-[\w\.]+)?$/)
stop_reactor
end
client
end
end