spec/unit/realtime/client_spec.rb in ably-0.2.0 vs spec/unit/realtime/client_spec.rb in ably-0.6.2

- old
+ new

@@ -14,19 +14,9 @@ rest_client = instance_double('Ably::Rest::Client', auth: instance_double('Ably::Auth'), options: {}) expect(Ably::Rest::Client).to receive(:new).with(client_options).and_return(rest_client) subject end - specify '#time' do - expect(subject.rest_client).to receive(:time) - subject.time - end - - specify '#stats' do - expect(subject.rest_client).to receive(:stats).with(options) - subject.stats options - end - context 'for attribute' do [:environment, :use_tls?, :log_level].each do |attribute| specify "##{attribute}" do expect(subject.rest_client).to receive(attribute) subject.public_send attribute