mirror of https://github.com/rails/rails
Improve ConnectionHandlingTest
As pointed by Carlos on the PR.
This commit is contained in:
parent
e7217c0d23
commit
17b0c0ce14
|
@ -39,8 +39,8 @@ module ActiveRecord
|
||||||
assert_same ActiveRecord::Base.connection, connection
|
assert_same ActiveRecord::Base.connection, connection
|
||||||
|
|
||||||
ActiveRecord::Base.with_connection do |connection2|
|
ActiveRecord::Base.with_connection do |connection2|
|
||||||
assert_same leased_connection, connection
|
assert_same leased_connection, connection2
|
||||||
assert_same ActiveRecord::Base.connection, connection
|
assert_same ActiveRecord::Base.connection, connection2
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue