Browse files

Refactored one more test

  • Loading branch information...
1 parent 3992375 commit 9bc86c795823081bff2e5e0fb998ba011e779dee @bhb bhb committed Jan 15, 2011
Showing with 1 addition and 4 deletions.
  1. +1 −4 test/multiple_request_profiling_test.rb
View
5 test/multiple_request_profiling_test.rb
@@ -308,10 +308,7 @@ def profile_requests(profiled_app, requests, options = {})
should 'return profiling data when __data__ is called' do
profiled_app = Rack::PerftoolsProfiler.with_profiling_off(@app, :default_printer => 'gif')
- profiled_app.call(@start_env)
- profiled_app.call(@root_request_env)
- profiled_app.call(@stop_env)
- status, headers, body = profiled_app.call(@data_env)
+ status, headers, body = profile(profiled_app)
assert_equal 200, status
assert_equal "image/gif", headers['Content-Type']
end

0 comments on commit 9bc86c7

Please sign in to comment.