Sha256: 83e7171493d63f880339d55bc2e2a99c0fe4a179833ff25a62367ccbfa7bec5a
Contents?: true
Size: 643 Bytes
Versions: 3
Compression:
Stored size: 643 Bytes
Contents
require 'spec_helper' describe "Thor Dependency" do before do Honeybadger::Dependency.reset! end context "when thor is not installed" do it "fails quietly" do expect { Honeybadger::Dependency.inject! }.not_to raise_error end end context "when thor is installed" do let(:shim) do double('fake thor') end before do Object.const_set(:Thor, shim) end after { Object.send(:remove_const, :Thor) } it "includes integration module into Thor" do shim.should_receive(:send).with(:include, Honeybadger::Integrations::Thor) Honeybadger::Dependency.inject! end end end
Version data entries
3 entries across 3 versions & 1 rubygems