Sha256: 56eae9d804a3056dac0c2f1a0a226db69065058a64557dcb3091a61229533067
Contents?: true
Size: 670 Bytes
Versions: 26
Compression:
Stored size: 670 Bytes
Contents
require 'spec_helper' describe "Sequel integration", if: sequel_present? do let(:file) { File.expand_path('lib/appsignal/integrations/sequel.rb') } let(:db) { Sequel.sqlite } before do load file start_agent end context "with Sequel" do before { Appsignal::Transaction.create('uuid', Appsignal::Transaction::HTTP_REQUEST, 'test') } it "should instrument queries" do expect( Appsignal::Extension ).to receive(:start_event) .at_least(:once) expect( Appsignal::Extension ).to receive(:finish_event) .at_least(:once) .with(kind_of(Integer), "sql.sequel", "", "") db['SELECT 1'].all end end end
Version data entries
26 entries across 26 versions & 1 rubygems