spec/unit/intercom/company_spec.rb in intercom-4.1.1 vs spec/unit/intercom/company_spec.rb in intercom-4.1.2

- old
+ new

@@ -33,6 +33,12 @@ proxy = company.contacts _(proxy.resource_name).must_equal 'contacts' _(proxy.url).must_equal '/companies/1/contacts' _(proxy.resource_class).must_equal Intercom::Contact end + + it "deletes a company" do + company = Intercom::Company.new("id" => "1") + client.expects(:delete).with("/companies/1", {}) + client.companies.delete(company) + end end