spec/acceptance/realtime/connection_failures_spec.rb in ably-0.7.6 vs spec/acceptance/realtime/connection_failures_spec.rb in ably-0.8.0
- old
+ new
@@ -19,11 +19,11 @@
default_options.merge(key: invalid_key, log_level: :none)
end
context 'when API key is invalid' do
context 'with invalid app part of the key' do
- let(:invalid_key) { 'not_an_app.invalid_key_id:invalid_key_value' }
+ let(:invalid_key) { 'not_an_app.invalid_key_name:invalid_key_value' }
it 'enters the failed state and returns a not found error' do
connection.on(:failed) do |error|
expect(connection.state).to eq(:failed)
# TODO: Check error type is an InvalidToken exception
@@ -32,11 +32,11 @@
stop_reactor
end
end
end
- context 'with invalid key ID part of the key' do
- let(:invalid_key) { "#{app_id}.invalid_key_id:invalid_key_value" }
+ context 'with invalid key name part of the key' do
+ let(:invalid_key) { "#{app_id}.invalid_key_name:invalid_key_value" }
it 'enters the failed state and returns an authorization error' do
connection.on(:failed) do |error|
expect(connection.state).to eq(:failed)
# TODO: Check error type is a TokenNotFOund exception