• Igor Drozdov's avatar
    Reset state correctly for tests failed in Rails 6.1 · a5d10d4c
    Igor Drozdov authored
    Objects created via let_it_be are shared between tests.
    Sometimes we reload them in order to reset the state.
    Sometimes it's not enough.
    For example, some tests fail because @_destroyed instance
    variable preserved. So the objects removed in a previous
    test, marked as removed in the subsequent ones.
    
    Let's use refind to fix those cases
    a5d10d4c
seat_link_data_spec.rb 5.29 KB