lib/submodules/ably-ruby/spec/acceptance/realtime/client_spec.rb in ably-rest-0.8.15 vs lib/submodules/ably-ruby/spec/acceptance/realtime/client_spec.rb in ably-rest-0.9.0
- old
+ new
@@ -60,11 +60,11 @@
end
context 'with valid :key and :use_token_auth option set to true' do
let(:client_options) { default_options.merge(use_token_auth: true) }
- it 'automatically authorises on connect and generates a token' do
+ it 'automatically authorizes on connect and generates a token' do
connection.on(:connected) do
expect(subject.auth.current_token_details).to_not be_nil
expect(auth_params[:access_token]).to_not be_nil
stop_reactor
end
@@ -114,18 +114,18 @@
end
end
context 'when the returned token has a client_id' do
it "sets Auth#client_id to the new token's client_id immediately when connecting" do
- subject.auth.authorise do
+ subject.auth.authorize do
expect(subject.connection).to be_connecting
expect(subject.auth.client_id).to eql(client_id)
stop_reactor
end
end
it "sets Client#client_id to the new token's client_id immediately when connecting" do
- subject.auth.authorise do
+ subject.auth.authorize do
expect(subject.connection).to be_connecting
expect(subject.client_id).to eql(client_id)
stop_reactor
end
end