Stub transaction_open? via allow instead of expect
In Rails 6.1 transaction_open? is called multiple times, so we should either expect a particular number of calls or just use allow and stub the return value. According to the context of this spec, it's sufficient to use allow in this case
Showing
Please register or sign in to comment