Sha256: b86c6e8c9bba0a88ce4f54945d41ec87f4b14f69bdff4f6a9305df5a9112c698

Contents?: true

Size: 398 Bytes

Versions: 7

Compression:

Stored size: 398 Bytes

Contents

require 'spec_helper'

describe Ably::Rest::Client, '#time' do
  vary_by_protocol do
    let(:client) do
      Ably::Rest::Client.new(api_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
        expect(client.time).to be_within(2).of(Time.now)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
ably-rest-0.7.5 lib/submodules/ably-ruby/spec/acceptance/rest/time_spec.rb
ably-0.7.5 spec/acceptance/rest/time_spec.rb
ably-0.7.4 spec/acceptance/rest/time_spec.rb
ably-rest-0.7.3 lib/submodules/ably-ruby/spec/acceptance/rest/time_spec.rb
ably-0.7.2 spec/acceptance/rest/time_spec.rb
ably-0.7.1 spec/acceptance/rest/time_spec.rb
ably-0.7.0 spec/acceptance/rest/time_spec.rb