lib/submodules/ably-ruby/spec/acceptance/rest/client_spec.rb in ably-rest-0.8.6 vs lib/submodules/ably-ruby/spec/acceptance/rest/client_spec.rb in ably-rest-0.8.9
- old
+ new
@@ -380,10 +380,10 @@
}.to_json
)
end
it 'does not attempt the fallback hosts as this is an authentication failure' do
- expect { publish_block.call }.to raise_error(Ably::Exceptions::InvalidRequest)
+ expect { publish_block.call }.to raise_error(Ably::Exceptions::UnauthorizedRequest)
expect(default_host_request_stub).to have_been_requested
expect(first_fallback_request_stub).to_not have_been_requested
expect(second_fallback_request_stub).to_not have_been_requested
end
end