spec/acceptance/realtime/channel_history_spec.rb in ably-0.8.15 vs spec/acceptance/realtime/channel_history_spec.rb in ably-1.0.0
- old
+ new
@@ -204,12 +204,14 @@
end
end
end
end
- it 'raises an exception unless state is attached' do
- expect { channel.history(until_attach: true) }.to raise_error(ArgumentError, /not attached/)
- stop_reactor
+ it 'fails the deferrable unless the state is attached' do
+ channel.history(until_attach: true).errback do |error|
+ expect(error.message).to match(/not attached/)
+ stop_reactor
+ end
end
end
end
end