Skip to content
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

beer-song: Rewrite tests to use hspec with fail-fast. #236

Merged
merged 1 commit into from
Jul 31, 2016
Merged

beer-song: Rewrite tests to use hspec with fail-fast. #236

merged 1 commit into from
Jul 31, 2016

Conversation

rbasso
Copy link
Contributor

@rbasso rbasso commented Jul 26, 2016

Related to #211.

exitProperly m = do
counts <- m
exitWith $ if failures counts /= 0 || errors counts /= 0 then ExitFailure 1 else ExitSuccess
import Test.Hspec (Spec, describe, it, shouldBe)
Copy link
Member

@petertseng petertseng Jul 30, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just noticed the extra space (before Test.Hspec), do all of the test files have this?

Okay, looked at triangle and it doesn't maybe accidental then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@rbasso rbasso merged commit ec7ccb0 into exercism:hspec-fail-fast Jul 31, 2016
@rbasso rbasso deleted the hspec-beer-song branch July 31, 2016 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants