Sha256: caa46f0e998cdb82b9463835f548de0c39f1ceca7def9d6cd72fcbba4ccfbbb1

Contents?: true

Size: 490 Bytes

Versions: 47

Compression:

Stored size: 490 Bytes

Contents

require 'spec_helper'

if sinatra_present? && !padrino_present?
  ENV['APPSIGNAL_PUSH_API_KEY'] = 'key'
  require 'appsignal/integrations/sinatra'

  describe "Sinatra integration" do
    context "logger" do
      subject { Appsignal.logger }

      it { should be_a Logger }
    end

    it "should have added the instrumentation middleware" do
      Sinatra::Application.middleware.to_a.should include(
        [Appsignal::Rack::SinatraInstrumentation, [], nil]
      )
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
appsignal-1.2.5 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.4 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.4.beta.4 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.4.beta.3 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.4.beta.2 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.4.beta.1 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.3 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.3.beta.3 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.3.beta.2 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.3.beta.1 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.2 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.1 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.1.beta.3 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.1.beta.2 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.1.beta.1 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.0 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.0.beta.1 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.0.alpha.6 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.0.alpha.5 spec/lib/appsignal/integrations/sinatra_spec.rb
appsignal-1.2.0.alpha.4 spec/lib/appsignal/integrations/sinatra_spec.rb