Sha256: 778b499179c22ec5544fe4742b4f36825ba2a78ce0010d0d50ec0116fce3a9e6
Contents?: true
Size: 775 Bytes
Versions: 6
Compression:
Stored size: 775 Bytes
Contents
require 'spec_helper' describe Appsignal::Hooks::DataMapperHook do context "with datamapper" do before :all do module DataMapper end module DataObjects class Connection end end Appsignal::Hooks::DataMapperHook.new.install end after :all do Object.send(:remove_const, :DataMapper) Object.send(:remove_const, :DataObjects) end its(:dependencies_present?) { should be_true } it "should install the listener" do expect(::DataObjects::Connection).to receive(:include) .with(Appsignal::Hooks::DataMapperLogListener) Appsignal::Hooks::DataMapperHook.new.install end end context "without datamapper" do its(:dependencies_present?) { should be_false } end end
Version data entries
6 entries across 6 versions & 1 rubygems