spec/unit/realtime/client_spec.rb in ably-1.0.7 vs spec/unit/realtime/client_spec.rb in ably-1.1.0

- old
+ new

@@ -26,9 +26,21 @@ end end end end + context 'push' do + let(:client_options) { { key: 'appid.keyuid:keysecret' } } + + specify '#device is not supported and raises an exception' do + expect { subject.device }.to raise_error Ably::Exceptions::PushNotificationsNotSupported + end + + specify '#push returns a Push object' do + expect(subject.push).to be_a(Ably::Realtime::Push) + end + end + after(:all) do sleep 1 # let realtime library shut down any open clients end end