lib/submodules/ably-ruby/spec/unit/realtime/realtime_spec.rb in ably-rest-0.8.5 vs lib/submodules/ably-ruby/spec/unit/realtime/realtime_spec.rb in ably-rest-0.8.6

- old
+ new

@@ -1,9 +1,13 @@ require 'spec_helper' describe Ably::Realtime do - let(:options) { { key: 'app.key:secret' } } + let(:options) { { key: 'app.key:secret', auto_connect: false } } specify 'constructor returns an Ably::Realtime::Client' do expect(Ably::Realtime.new(options)).to be_instance_of(Ably::Realtime::Client) + end + + after(:all) do + sleep 1 # let realtime library shut down any open clients end end