Sha256: 9dd72534b7ae4daac680ebb106761917d68ff272ea6f108f1c9e7af63ce08d22

Contents?: true

Size: 1.01 KB

Versions: 10

Compression:

Stored size: 1.01 KB

Contents

require 'spec_helper'
require 'shared/model_behaviour'

describe Ably::Models::ChannelMetrics do
  subject { Ably::Models::ChannelMetrics(connections: 1, presence_connections: 2, presence_members: 2, presence_subscribers: 5, publishers: 7, subscribers: 9) }

  describe '#connections' do
    it 'should return integer' do
      expect(subject.connections).to eq(1)
    end
  end

  describe '#presence_connections' do
    it 'should return integer' do
      expect(subject.presence_connections).to eq(2)
    end
  end

  describe '#presence_members' do
    it 'should return integer' do
      expect(subject.presence_members).to eq(2)
    end
  end

  describe '#presence_subscribers' do
    it 'should return integer' do
      expect(subject.presence_subscribers).to eq(5)
    end
  end

  describe '#publishers' do
    it 'should return integer' do
      expect(subject.publishers).to eq(7)
    end
  end

  describe '#subscribers' do
    it 'should return integer' do
      expect(subject.subscribers).to eq(9)
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
ably-rest-1.2.7 lib/submodules/ably-ruby/spec/unit/models/channel_metrics_spec.rb
ably-1.2.7 spec/unit/models/channel_metrics_spec.rb
ably-rest-1.2.6 lib/submodules/ably-ruby/spec/unit/models/channel_metrics_spec.rb
ably-1.2.6 spec/unit/models/channel_metrics_spec.rb
ably-rest-1.2.4 lib/submodules/ably-ruby/spec/unit/models/channel_metrics_spec.rb
ably-1.2.4 spec/unit/models/channel_metrics_spec.rb
ably-rest-1.2.3 lib/submodules/ably-ruby/spec/unit/models/channel_metrics_spec.rb
ably-1.2.3 spec/unit/models/channel_metrics_spec.rb
ably-rest-1.2.2 lib/submodules/ably-ruby/spec/unit/models/channel_metrics_spec.rb
ably-1.2.2 spec/unit/models/channel_metrics_spec.rb