Skip to content

Commit 77cb55c

Browse files
Change expectation of error code for nonexistent API key
Must have changed on the backend. The new error code makes more sense.
1 parent 6c76d06 commit 77cb55c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/acceptance/rest/client_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ def encode64(text)
3333
it 'logs an entry with a help href url matching the code #TI5' do
3434
begin
3535
client.channels.get('foo').publish('test')
36-
raise 'Expected Ably::Exceptions::ResourceMissing'
37-
rescue Ably::Exceptions::ResourceMissing => err
38-
expect err.to_s.match(%r{https://help.ably.io/error/40400})
36+
raise 'Expected Ably::Exceptions::UnauthorizedRequest'
37+
rescue Ably::Exceptions::UnauthorizedRequest => err
38+
expect err.to_s.match(%r{https://help.ably.io/error/40101})
3939
end
4040
end
4141
end

0 commit comments

Comments
 (0)