Sha256: 4a650857a48601ff14b66344430645d4a0f9faf32c2e40ff531715cb32109037
Contents?: true
Size: 752 Bytes
Versions: 20
Compression:
Stored size: 752 Bytes
Contents
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
20 entries across 20 versions & 1 rubygems