Sha256: 8106ac964746556c0a838cc4d19be398a438eb6ab826497e69f37fe7d7208021

Contents?: true

Size: 745 Bytes

Versions: 30

Compression:

Stored size: 745 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Ably::Rest::Push do
  vary_by_protocol do
    let(:default_options) { { key: api_key, environment: environment, protocol: protocol} }
    let(:client_options)  { default_options }
    let(:client) do
      Ably::Rest::Client.new(client_options)
    end
    subject { client.push }

    describe '#activate' do
      it 'raises an unsupported exception' do
        expect { subject.activate('foo') }.to raise_error(Ably::Exceptions::PushNotificationsNotSupported)
      end
    end

    describe '#deactivate' do
      it 'raises an unsupported exception' do
        expect { subject.deactivate('foo') }.to raise_error(Ably::Exceptions::PushNotificationsNotSupported)
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
ably-rest-1.2.4 lib/submodules/ably-ruby/spec/acceptance/rest/push_spec.rb
ably-1.2.4 spec/acceptance/rest/push_spec.rb
ably-rest-1.2.3 lib/submodules/ably-ruby/spec/acceptance/rest/push_spec.rb
ably-1.2.3 spec/acceptance/rest/push_spec.rb
ably-rest-1.2.2 lib/submodules/ably-ruby/spec/acceptance/rest/push_spec.rb
ably-1.2.2 spec/acceptance/rest/push_spec.rb
ably-rest-1.2.1 lib/submodules/ably-ruby/spec/acceptance/rest/push_spec.rb
ably-1.2.1 spec/acceptance/rest/push_spec.rb
ably-rest-1.2.0 lib/submodules/ably-ruby/spec/acceptance/rest/push_spec.rb
ably-1.2.0 spec/acceptance/rest/push_spec.rb
ably-rest-1.1.8 lib/submodules/ably-ruby/spec/acceptance/rest/push_spec.rb
ably-1.1.8 spec/acceptance/rest/push_spec.rb
ably-rest-1.1.7 lib/submodules/ably-ruby/spec/acceptance/rest/push_spec.rb
ably-1.1.7 spec/acceptance/rest/push_spec.rb
ably-rest-1.1.6 lib/submodules/ably-ruby/spec/acceptance/rest/push_spec.rb
ably-1.1.6 spec/acceptance/rest/push_spec.rb
ably-rest-1.1.5 lib/submodules/ably-ruby/spec/acceptance/rest/push_spec.rb
ably-1.1.5 spec/acceptance/rest/push_spec.rb
ably-rest-1.1.4 lib/submodules/ably-ruby/spec/acceptance/rest/push_spec.rb
ably-1.1.4 spec/acceptance/rest/push_spec.rb