Sha256: 0474be4af7494afd0f14ace75389e9b8766e0167b57ef6b0c141928e301228bf

Contents?: true

Size: 811 Bytes

Versions: 30

Compression:

Stored size: 811 Bytes

Contents

# encoding: utf-8
require 'spec_helper'

describe Ably::Realtime::Push, :event_machine do
  vary_by_protocol do
    let(:default_options) { { key: api_key, environment: environment, protocol: protocol} }
    let(:client_options)  { default_options }
    let(:client) do
      Ably::Realtime::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)
        stop_reactor
      end
    end

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

Version data entries

30 entries across 30 versions & 2 rubygems

Version Path
ably-rest-1.1.4.rc lib/submodules/ably-ruby/spec/acceptance/realtime/push_spec.rb
ably-1.1.4.rc spec/acceptance/realtime/push_spec.rb
ably-rest-1.1.3 lib/submodules/ably-ruby/spec/acceptance/realtime/push_spec.rb
ably-1.1.3 spec/acceptance/realtime/push_spec.rb
ably-rest-1.1.2 lib/submodules/ably-ruby/spec/acceptance/realtime/push_spec.rb
ably-1.1.2 spec/acceptance/realtime/push_spec.rb
ably-rest-1.1.2.rc1 lib/submodules/ably-ruby/spec/acceptance/realtime/push_spec.rb
ably-1.1.1 spec/acceptance/realtime/push_spec.rb
ably-rest-1.1.0 lib/submodules/ably-ruby/spec/acceptance/realtime/push_spec.rb
ably-1.1.0 spec/acceptance/realtime/push_spec.rb