Sha256: fdb2672819c6f4282cefda51efcd7f24de1d373446c3e3bdec5953ae9ab1781d

Contents?: true

Size: 580 Bytes

Versions: 27

Compression:

Stored size: 580 Bytes

Contents

if RUBY_VERSION >= '1.9.3'
  require "minitest_helper"
  require File.expand_path(File.dirname(__FILE__) + '/apps/padrino_simple')

  describe Padrino do
    before do
      clear_all_traces
    end

    it "should trace a request to a simple padrino stack" do
      @app = SimpleDemo

      r = get "/render"

      traces = get_all_traces
      traces.count.must_equal 9

      validate_outer_layers(traces, 'rack')

      traces[1]['Layer'].must_equal "padrino"
      traces[6]['Controller'].must_equal "SimpleDemo"
      traces[7]['Label'].must_equal "info"
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
oboe-2.7.2.2 test/frameworks/padrino_test.rb
oboe-2.7.1.7 test/frameworks/padrino_test.rb
oboe-2.7.1.7-java test/frameworks/padrino_test.rb
oboe-2.7.0.3-java test/frameworks/padrino_test.rb
oboe-2.7.0.3 test/frameworks/padrino_test.rb
oboe-2.6.8 test/frameworks/padrino_test.rb
oboe-2.6.7.1 test/frameworks/padrino_test.rb