Sha256: ecc0931cbbc1550d822fb5361a1c839228abef3e597990cd041bc1787b7ed783
Contents?: true
Size: 652 Bytes
Versions: 2
Compression:
Stored size: 652 Bytes
Contents
require 'spec_helper' describe Ably::Realtime::Client, '#stats', :event_machine do vary_by_protocol do let(:client) do Ably::Realtime::Client.new(key: api_key, environment: environment, protocol: protocol) end describe 'fetching stats' do it 'should return a PaginatedResult' do client.stats do |stats| expect(stats).to be_a(Ably::Models::PaginatedResult) stop_reactor end end it 'returns a SafeDeferrable that catches exceptions in callbacks and logs them' do expect(client.stats).to be_a(Ably::Util::SafeDeferrable) stop_reactor end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
ably-rest-0.8.2 | lib/submodules/ably-ruby/spec/acceptance/realtime/stats_spec.rb |
ably-0.8.2 | spec/acceptance/realtime/stats_spec.rb |