spec/acceptance/realtime/stats_spec.rb in ably-0.7.1 vs spec/acceptance/realtime/stats_spec.rb in ably-0.7.2
- old
+ new
@@ -5,12 +5,12 @@
let(:client) do
Ably::Realtime::Client.new(api_key: api_key, environment: environment, protocol: protocol)
end
describe 'fetching stats' do
- it 'should return a Hash' do
+ it 'should return a PaginatedResource' do
client.stats do |stats|
- expect(stats).to be_a(Array)
+ expect(stats).to be_a(Ably::Models::PaginatedResource)
stop_reactor
end
end
it 'should return a Deferrable object' do