Sha256: 6491a17fddcc6a08df3daff7b5ba337e5320a8d6d12a1a189408f8fe1a5efed7
Contents?: true
Size: 728 Bytes
Versions: 16
Compression:
Stored size: 728 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[2]['Layer'].must_equal "sinatra" traces[4]['Label'].must_equal "profile_entry" traces[7]['Controller'].must_equal "SinatraSimple" 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
Version data entries
16 entries across 16 versions & 1 rubygems