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 11require 'intercom/service/base_service'
2+ require 'intercom/api_operations/delete'
23require 'intercom/api_operations/list'
34require 'intercom/api_operations/scroll'
45require 'intercom/api_operations/find'
1112module Intercom
1213 module Service
1314 class Company < BaseService
15+ include ApiOperations ::Delete
1416 include ApiOperations ::Find
1517 include ApiOperations ::FindAll
1618 include ApiOperations ::Load
Original file line number Diff line number Diff line change 3535 _ ( proxy . url ) . must_equal '/companies/1/contacts'
3636 _ ( proxy . resource_class ) . must_equal Intercom ::Contact
3737 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
3844end
You can’t perform that action at this time.
0 commit comments