Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently travel time helpers don't restore to proper previous state …
…if we have called them in a row, or in a nested fashion. We simply unstub all previous occurrences. Consider following scenario: travel_to outer_expected_time do travel_to inner_expected_time do #perform some operations from some state here end #perform some operations from some outer state here end This will fail for outer scenario in that, we simply just unstub all stubbed objects. Here onwards we also take into account the object into account to create alias, to be more safe in returning back to previous states. Fixes #24689
- Loading branch information
1 parent
c9c5788
commit 204c041
Showing
3 changed files
with
71 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters