Sha256: 9044417a07031e0917ccbc82197afed37ef832dce212d519dbd84b9afe97041c
Contents?: true
Size: 757 Bytes
Versions: 2
Compression:
Stored size: 757 Bytes
Contents
require 'spec_helper' describe Ably::Realtime::Client, '#time', :event_machine do vary_by_protocol do let(:client) do auto_close Ably::Realtime::Client.new(key: api_key, environment: environment, protocol: protocol) end describe 'fetching the service time' do it 'should return the service time as a Time object' do run_reactor do client.time do |time| expect(time).to be_within(2).of(Time.now) stop_reactor end end end it 'returns a SafeDeferrable that catches exceptions in callbacks and logs them' do run_reactor do expect(client.time).to be_a(Ably::Util::SafeDeferrable) stop_reactor end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
ably-rest-0.8.5 | lib/submodules/ably-ruby/spec/acceptance/realtime/time_spec.rb |
ably-0.8.5 | spec/acceptance/realtime/time_spec.rb |