spec/acceptance/realtime/channel_history_spec.rb in ably-0.8.4 vs spec/acceptance/realtime/channel_history_spec.rb in ably-0.8.5

- old
+ new

@@ -3,14 +3,14 @@ describe Ably::Realtime::Channel, '#history', :event_machine do vary_by_protocol do let(:default_options) { options.merge(key: api_key, environment: environment, protocol: protocol) } - let(:client) { Ably::Realtime::Client.new(default_options) } + let(:client) { auto_close Ably::Realtime::Client.new(default_options) } let(:channel) { client.channel(channel_name) } let(:rest_channel) { client.rest_client.channel(channel_name) } - let(:client2) { Ably::Realtime::Client.new(default_options) } + let(:client2) { auto_close Ably::Realtime::Client.new(default_options) } let(:channel2) { client2.channel(channel_name) } let(:channel_name) { "persisted:#{random_str(2)}" } let(:payload) { random_str } let(:messages) { [] }