Sha256: dbc3ad7fbefbd0111438a41f84b2f2414e5c8c80d486f2781044c57744e4800c

Contents?: true

Size: 742 Bytes

Versions: 16

Compression:

Stored size: 742 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[2]['Layer'].must_equal "padrino"
      traces[7]['Controller'].must_equal "SimpleDemo"
      traces[8]['Label'].must_equal "exit"

      # Validate the existence of the response header
      r.headers.key?('X-Trace').must_equal true
      r.headers['X-Trace'].must_equal traces[8]['X-Trace']
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
oboe-2.7.19-java test/frameworks/padrino_test.rb
oboe-2.7.19 test/frameworks/padrino_test.rb
oboe-2.7.18-java test/frameworks/padrino_test.rb
oboe-2.7.18 test/frameworks/padrino_test.rb
oboe-2.7.17.1-java test/frameworks/padrino_test.rb
oboe-2.7.17.1 test/frameworks/padrino_test.rb
oboe-2.7.16.1 test/frameworks/padrino_test.rb
oboe-2.7.16.1-java test/frameworks/padrino_test.rb
oboe-2.7.15.1-java test/frameworks/padrino_test.rb
oboe-2.7.15.1 test/frameworks/padrino_test.rb
oboe-2.7.14.1-java test/frameworks/padrino_test.rb
oboe-2.7.14.1 test/frameworks/padrino_test.rb
oboe-2.7.13.3-java test/frameworks/padrino_test.rb
oboe-2.7.13.3 test/frameworks/padrino_test.rb
oboe-2.7.12.1-java test/frameworks/padrino_test.rb
oboe-2.7.12.1 test/frameworks/padrino_test.rb