Sha256: 4a0e48e50279f86f58788d7f204560b8598d1700e816db2b09782a48ce575aed
Contents?: true
Size: 755 Bytes
Versions: 4
Compression:
Stored size: 755 Bytes
Contents
describe Appsignal::Hooks::SequelHook do if DependencyHelper.sequel_present? let(:db) { Sequel.sqlite } before :all do start_agent end its(:dependencies_present?) { should be_true } context "with a transaction" do it "should instrument queries" do Appsignal::Transaction.create('uuid', Appsignal::Transaction::HTTP_REQUEST, 'test') expect( Appsignal::Transaction.current ).to receive(:start_event) .at_least(:once) expect( Appsignal::Transaction.current ).to receive(:finish_event) .at_least(:once) .with("sql.sequel", nil, kind_of(String), 1) db['SELECT 1'].all.to_a end end else its(:dependencies_present?) { should be_false } end end
Version data entries
4 entries across 4 versions & 1 rubygems