Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To improve BehaviorSpec customizability, this commit adds extra scopes to BehaviorSpec. As discussed, users can concatenate `And` indefinitely, but it's ok. As `And` is optional to complete a test. This behavior is also observed in `FreeSpec`, as it can concatenate infinite test scopes too. To do that, every context (Given, And/When and Then) receive a new possibility of scoping, `And`. There are some variations of it, to build tests correctly: GivenAndContext, WhenAndContext and ThenAndContext. All of these are optional to use. Fixes #562
- Loading branch information
Showing
2 changed files
with
252 additions
and
27 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