spec/unit/realtime/client_spec.rb in ably-1.1.1 vs spec/unit/realtime/client_spec.rb in ably-1.1.2

- old
+ new

@@ -11,10 +11,10 @@ context 'delegation to the REST Client' do let(:client_options) { { key: 'appid.keyuid:keysecret', auto_connect: false } } it 'passes on the options to the initializer' do - rest_client = instance_double('Ably::Rest::Client', auth: instance_double('Ably::Auth'), options: client_options) + rest_client = instance_double('Ably::Rest::Client', auth: instance_double('Ably::Auth'), options: client_options, environment: 'production', use_tls?: true, custom_tls_port: nil) expect(Ably::Rest::Client).to receive(:new).with(hash_including(client_options)).and_return(rest_client) subject end context 'for attribute' do