We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed982fc commit 161e1c0Copy full SHA for 161e1c0
spec/unit/intercom/request_spec.rb
@@ -66,7 +66,7 @@
66
67
describe "Application errors on failure" do
68
let(:uri) {"https://api.intercom.io/conversations/reply"}
69
- it 'should raise error' do
+ it 'should raise ResourceNotUniqueError error on resource_conflict code' do
70
# Use webmock to mock the HTTP request
71
stub_request(:put, uri).\
72
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