Sha256: 429046e20927d74dcfd4cf52752acf4dd749b11f3966b7649363901b3adfd434

Contents?: true

Size: 572 Bytes

Versions: 27

Compression:

Stored size: 572 Bytes

Contents

require "minitest_helper"
require File.expand_path(File.dirname(__FILE__) + '/apps/sinatra_simple')

describe Sinatra do
  before do
    clear_all_traces
  end

  it "should trace a request to a simple sinatra stack" do
    @app = SinatraSimple

    r = get "/render"

    traces = get_all_traces
    traces.count.must_equal 9

    validate_outer_layers(traces, 'rack')

    traces[1]['Layer'].must_equal "sinatra"
    traces[3]['Label'].must_equal "profile_entry"
    traces[6]['Controller'].must_equal "SinatraSimple"
    traces[7]['Label'].must_equal "info"
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
oboe-2.7.9.lynx1 test/frameworks/sinatra_test.rb
oboe-2.7.8.1-java test/frameworks/sinatra_test.rb
oboe-2.7.8.1 test/frameworks/sinatra_test.rb
oboe-2.7.7.1-java test/frameworks/sinatra_test.rb
oboe-2.7.7.1 test/frameworks/sinatra_test.rb
oboe-2.7.6.2-java test/frameworks/sinatra_test.rb
oboe-2.7.6.2 test/frameworks/sinatra_test.rb
oboe-2.7.5.1-java test/frameworks/sinatra_test.rb
oboe-2.7.5.1 test/frameworks/sinatra_test.rb
oboe-2.7.5.wolf3 test/frameworks/sinatra_test.rb
oboe-2.7.5.wolf3-java test/frameworks/sinatra_test.rb
oboe-2.7.5.wolf1 test/frameworks/sinatra_test.rb
oboe-2.7.5.wolf1-java test/frameworks/sinatra_test.rb
oboe-2.7.4.1-java test/frameworks/sinatra_test.rb
oboe-2.7.4.1 test/frameworks/sinatra_test.rb
oboe-2.7.3.1-java test/frameworks/sinatra_test.rb
oboe-2.7.3.1 test/frameworks/sinatra_test.rb
oboe-2.7.2.fuchs2 test/frameworks/sinatra_test.rb
oboe-2.7.2.fuchs1 test/frameworks/sinatra_test.rb
oboe-2.7.2.2-java test/frameworks/sinatra_test.rb