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

Version Path
appsignal-0.12.rc.7 spec/lib/appsignal/instrumentations/sequel_spec.rb
appsignal-0.12.rc.6 spec/lib/appsignal/instrumentations/sequel_spec.rb
appsignal-0.12.rc.5 spec/lib/appsignal/instrumentations/sequel_spec.rb
appsignal-0.12.beta.54 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.53 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.52 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.51 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.50 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.49 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.48 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.47 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.46 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.45 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.44 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.43 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.42 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.41 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.40 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.39 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.38 spec/lib/appsignal/integrations/sequel_spec.rb