-
Notifications
You must be signed in to change notification settings - Fork 25
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
Test.Hspec.Wai should shadow lifted Test.Hspec functions #22
Comments
Hey, Yes, you are right. I already started in that direction on branch https://github.com/hspec/hspec-wai/tree/re-exports. Do you want to take a look, augment it if needed and open a PR? |
After inspecting, the only functions missing seemed to be the expectations in |
I reverted this, because from my perspective it's not entirely clear what we would need to re-export and what not (e.g. what about hooks). The underlying issues as I see it is that re-exporting everything dose not compose well. The current situation is not ideal, as we have a name conflict for (read: I acknowledge that there is a problem we need to fix, but right now I need to cut a release and I don't know what the right solution is.) |
@sol No problem; happy to contribute ideas regardless. Thanks for all of your work on Hspec. |
Rather than requiring conflicting imports from both
Test.Hspec
andTest.Hspec.Wai
,Test.Hspec.Wai
could export all ofTest.Hspec
, replacing the functions that need lifting, such asrender
orshouldBe
, with the lifted versions.This seems unlikely to cause problems, since anybody using both test suites in the same file should probably have them qualified to avoid conflicts even in the current iteration. Will send a pull if going this route sounds worthwhile to you.
The text was updated successfully, but these errors were encountered: