Skip to content

Commit 161e1c0

Browse files
author
sofia
committed
amended commend on spec
1 parent ed982fc commit 161e1c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/unit/intercom/request_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
describe "Application errors on failure" do
6868
let(:uri) {"https://api.intercom.io/conversations/reply"}
69-
it 'should raise error' do
69+
it 'should raise ResourceNotUniqueError error on resource_conflict code' do
7070
# Use webmock to mock the HTTP request
7171
stub_request(:put, uri).\
7272
to_return(status: [409, "Resource Already Exists"], headers: { 'X-RateLimit-Reset' => Time.now.utc + 10 }, body: {type: "error.list", errors: [ code: "resource_conflict" ]}.to_json)

0 commit comments

Comments
 (0)