New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignoring hook context #242
Comments
This seems like a sensible pattern, yes. Maybe it would even make sense to have this as a primitive and implement However both @sol and me are still experimenting with approaches for allowing multiple arguments to spec items. We tend to defer this issue until we have a proper solution. (We're afraid of additional breakage.) If this is important to you, we would be happy to include it now though. Personally I use |
I think this is a specialization #353. |
I'm tempted to ditch this. Having only one argument to spec items actually nicely fits the concept of "subject under test" (see my prototype for RSpec-style one-liner it-blocks, https://github.com/hspec/hspec-subject). |
With #360 ignoreHookContext :: SpecWith () -> SpecWith a
ignoreHookContext = mapSubject (const ()) Assuming we add |
|
Hi, I found myself to use the following (see full example:
Is this a sensible pattern to use?
Should it be a helper function in hspec?
The text was updated successfully, but these errors were encountered: