-
-
Notifications
You must be signed in to change notification settings - Fork 759
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revise before(:all)/let behavior based on feedback from @dchelimsky.
- This is closer to the behavior we've had in 2.12 and earlier. `let` declarations that are accessed in `before(:all)` will preserve their memoized value for all examples in the group. - On 2.12 and earlier, this would cause additional `let` declarations that were not accessed in `before(:all)` but were accessed in individual examples to "leak", because the same `__@memoized` ivar got shared with each example in the group, and would be mutated each time an additional `let` declaration was accessed. This commit changes that behavior. The fact that one `let` declaration is accessed in `before(:all)` does not affect the lifecycle of other `let` declarations in any way.
- Loading branch information
1 parent
53d3c0b
commit e6714c0
Showing
3 changed files
with
87 additions
and
41 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