• Igor Drozdov's avatar
    Stub transaction_open? via allow instead of expect · fa5043de
    Igor Drozdov authored
    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
    fa5043de
internal_id_spec.rb 8.82 KB