spec/unit/intercom/company_spec.rb in intercom-2.4.2 vs spec/unit/intercom/company_spec.rb in intercom-2.4.3

- old
+ new

@@ -3,10 +3,10 @@ describe Intercom::Company do describe 'when no response raises error' do it 'on find' do Intercom.expects(:get).with("/companies", {:company_id => '4'}).returns(nil) - proc {company = Intercom::Company.find(:company_id => '4')}.must_raise Intercom::HttpError + proc {Intercom::Company.find(:company_id => '4')}.must_raise Intercom::HttpError end it 'on find_all' do Intercom.expects(:get).with("/companies", {}).returns(nil) proc {Intercom::Company.all.each {|company| }}.must_raise Intercom::HttpError