Sha256: c6015fd95653924eac57dbf17b75e3212081d157d41429c3763cd2e62b849050

Contents?: true

Size: 511 Bytes

Versions: 28

Compression:

Stored size: 511 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 { db['SELECT 1'].all }
        .to change { Appsignal::Transaction.current.events.empty? }
        .from(true).to(false)
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
appsignal-0.11.18 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.17 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.16 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.15 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.14 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.14.beta.1 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.13 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.13.beta.4 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.13.beta.3 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.13.beta.2 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.13.beta.1 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.13.beta.0 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.12 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.11 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.10 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.10.beta.2 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.10.beta.1 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.9 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.8.beta.4 spec/lib/appsignal/integrations/sequel_spec.rb
appsignal-0.11.8.beta.3 spec/lib/appsignal/integrations/sequel_spec.rb