Skip to content
Browse files

Removed unused test variables in the #setup methods

  • Loading branch information...
1 parent 59a20f0 commit 8a78acd69fcf28daaf54358d1fd10248407e0d8d @bhb bhb committed Jan 12, 2011
Showing with 0 additions and 4 deletions.
  1. +0 −1 test/multiple_request_profiling_test.rb
  2. +0 −3 test/single_request_profiling_test.rb
View
1 test/multiple_request_profiling_test.rb
@@ -5,7 +5,6 @@ class MultipleRequestProfilingTest < Test::Unit::TestCase
def setup
@app = lambda { |env| ITERATIONS.times {1+2+3+4+5}; [200, {'Content-Type' => 'text/plain'}, ['Oh hai der']] }
- @slow_app = lambda { |env| ITERATIONS.times {1+2+3+4+5}; [200, {'Content-Type' => 'text/plain'}, ['slow app']] }
@start_env = Rack::MockRequest.env_for('/__start__')
@stop_env = Rack::MockRequest.env_for('/__stop__')
@data_env = Rack::MockRequest.env_for('/__data__')
View
3 test/single_request_profiling_test.rb
@@ -6,9 +6,6 @@ class SingleRequestProfilingTest < Test::Unit::TestCase
def setup
@app = lambda { |env| ITERATIONS.times {1+2+3+4+5}; [200, {'Content-Type' => 'text/plain'}, ['Oh hai der']] }
@slow_app = lambda { |env| ITERATIONS.times {1+2+3+4+5}; [200, {'Content-Type' => 'text/plain'}, ['slow app']] }
- @start_env = Rack::MockRequest.env_for('/__start__')
- @stop_env = Rack::MockRequest.env_for('/__stop__')
- @data_env = Rack::MockRequest.env_for('/__data__')
@root_request_env = Rack::MockRequest.env_for("/")
@profiled_request_env = Rack::MockRequest.env_for("/", :params => "profile=true")
@profiled_request_env_with_times = Rack::MockRequest.env_for("/", :params => "profile=true&times=2")

0 comments on commit 8a78acd

Please sign in to comment.
Something went wrong with that request. Please try again.