Add tests for `current_preventing_writes`
Add tests for `current_preventing_writes`

Ensure that the new version and legacy versions work as expected.

betesh/rails,Envek/rails,Erol/rails,tjschuck/rails,bogdanvlviv/rails,EmmaB/rails-1,yawboakye/rails,yahonda/rails,Stellenticket/rails,Stellenticket/rails,esparta/rails,joonyou/rails,Erol/rails,yahonda/rails,esparta/rails,yawboakye/rails,kddeisz/rails,lcreid/rails,BlakeWilliams/rails,betesh/rails,bogdanvlviv/rails,Vasfed/rails,tgxworld/rails,Erol/rails,kmcphillips/rails,kmcphillips/rails,kmcphillips/rails,joonyou/rails,tjschuck/rails,vipulnsward/rails,vipulnsward/rails,EmmaB/rails-1,BlakeWilliams/rails,Stellenticket/rails,yahonda/rails,tgxworld/rails,rails/rails,yahonda/rails,Edouard-chin/rails,Erol/rails,Edouard-chin/rails,eileencodes/rails,yawboakye/rails,esparta/rails,Edouard-chin/rails,tgxworld/rails,MSP-Greg/rails,eileencodes/rails,vipulnsward/rails,BlakeWilliams/rails,georgeclaghorn/rails,lcreid/rails,Vasfed/rails,georgeclaghorn/rails,rails/rails,Stellenticket/rails,kmcphillips/rails,Edouard-chin/rails,eileencodes/rails,Vasfed/rails,tgxworld/rails,rails/rails,Envek/rails,EmmaB/rails-1,betesh/rails,lcreid/rails,kddeisz/rails,tjschuck/rails,esparta/rails,betesh/rails,eileencodes/rails,georgeclaghorn/rails,BlakeWilliams/rails,lcreid/rails,vipulnsward/rails,Envek/rails,MSP-Greg/rails,Vasfed/rails,MSP-Greg/rails,tjschuck/rails,bogdanvlviv/rails,kddeisz/rails,joonyou/rails,bogdanvlviv/rails,kddeisz/rails,georgeclaghorn/rails,Envek/rails,MSP-Greg/rails,rails/rails,joonyou/rails,yawboakye/rails