Sha256: 4b5a8e74d582fee5da8cfb09e00d49f5ac212c48711a04ec3f091d593e399b0c

Contents?: true

Size: 644 Bytes

Versions: 31

Compression:

Stored size: 644 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', 'test') }

    it "should instrument queries" do
      expect( Appsignal::Extension ).to receive(:start_event)
        .at_least(:once)
        .with('uuid')
      expect( Appsignal::Extension ).to receive(:finish_event)
        .at_least(:once)
        .with('uuid', "sql.sequel", "", "")

      db['SELECT 1'].all
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
appsignal-0.12.beta.31 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.30 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.29 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.28 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.27 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.26 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.25 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.24 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.23 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.22 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.21 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.20 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.19 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.18 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.17 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.16 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.15 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.14 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.13 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.12.beta.12 spec/lib/appsignal/integrations/sequel_spec.rb