Skip to content

Commit 17b0c0c

Browse files
committed
Improve ConnectionHandlingTest
As pointed by Carlos on the PR.
1 parent e7217c0 commit 17b0c0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/test/cases/connection_handling_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ class ConnectionHandlingTest < ActiveRecord::TestCase
3939
assert_same ActiveRecord::Base.connection, connection
4040

4141
ActiveRecord::Base.with_connection do |connection2|
42-
assert_same leased_connection, connection
43-
assert_same ActiveRecord::Base.connection, connection
42+
assert_same leased_connection, connection2
43+
assert_same ActiveRecord::Base.connection, connection2
4444
end
4545
end
4646

0 commit comments

Comments
 (0)