Skip to content
Browse files

fixing whitespace errors

  • Loading branch information...
1 parent ef165b3 commit 2244bb00131f2f5ec4d1912f7dd6378ba0f3b58f @tenderlove tenderlove committed Jul 16, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 activerecord/test/cases/connection_pool_test.rb
View
8 activerecord/test/cases/connection_pool_test.rb
@@ -5,21 +5,21 @@ def setup
@env = {}
@app = stub('App')
@management = ActiveRecord::ConnectionAdapters::ConnectionManagement.new(@app)
-
+
@connections_cleared = false
ActiveRecord::Base.stubs(:clear_active_connections!).with { @connections_cleared = true }
end
-
+
test "clears active connections after each call" do
@app.expects(:call).with(@env)
@management.call(@env)
assert @connections_cleared
end
-
+
test "doesn't clear active connections when running in a test case" do
@env['rack.test'] = true
@app.expects(:call).with(@env)
@management.call(@env)
assert !@connections_cleared
end
-end
+end

0 comments on commit 2244bb0

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