Sha256: f8b1b6fcf1302199c56c0299ae5be092bcdc3ba266e1f33d06df799db23b5bb0
Contents?: true
Size: 785 Bytes
Versions: 6
Compression:
Stored size: 785 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 valid_edges?(traces).must_equal true 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
6 entries across 6 versions & 1 rubygems