1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #37091 from bogdanvlviv/extend-test-from-37065

Extend `test_can_write_while_reading_from_replicas_if_explicit`
This commit is contained in:
Eileen M. Uchitelle 2019-08-30 11:09:07 -04:00 committed by GitHub
commit 01cc0c183d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -62,7 +62,11 @@ module ActiveRecord
ActiveRecord::Base.connected_to(role: :writing, prevent_writes: false) do
assert ActiveRecord::Base.connected_to?(role: :writing)
assert_not_predicate ActiveRecord::Base.connection, :preventing_writes?
end
assert ActiveRecord::Base.connected_to?(role: :writing)
assert_predicate ActiveRecord::Base.connection, :preventing_writes?
end
assert called
end