File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1
1
require 'intercom/service/base_service'
2
+ require 'intercom/api_operations/delete'
2
3
require 'intercom/api_operations/list'
3
4
require 'intercom/api_operations/scroll'
4
5
require 'intercom/api_operations/find'
11
12
module Intercom
12
13
module Service
13
14
class Company < BaseService
15
+ include ApiOperations ::Delete
14
16
include ApiOperations ::Find
15
17
include ApiOperations ::FindAll
16
18
include ApiOperations ::Load
Original file line number Diff line number Diff line change 35
35
_ ( proxy . url ) . must_equal '/companies/1/contacts'
36
36
_ ( proxy . resource_class ) . must_equal Intercom ::Contact
37
37
end
38
+
39
+ it "deletes a company" do
40
+ company = Intercom ::Company . new ( "id" => "1" )
41
+ client . expects ( :delete ) . with ( "/companies/1" , { } )
42
+ client . companies . delete ( company )
43
+ end
38
44
end
You can’t perform that action at this time.
0 commit comments