We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b00f55 commit 3d8a5c8Copy full SHA for 3d8a5c8
test/spec_rack_profiler.rb
@@ -14,9 +14,10 @@
14
profiler.instance_variable_get('@times').must_equal 1
15
end
16
17
- specify 'call @times globally and times is set' do
18
- profiler = Rack::Profiler.new(app, :times => 4)
19
- profiler.instance_variable_get('@times').should.equal 4
+ specify 'called multiple times via query params' do
+ req = Rack::MockRequest.env_for("/", :params => "profile=process_time×=4")
+ body = Rack::Profiler.new(app).call(req)[2].string
20
+ body.must_match(/Fixnum#to_s \[4 calls, 4 total\]/)
21
22
23
specify 'CallStackPrinter has Content-Type test/html' do
0 commit comments