Skip to content

Commit

Permalink
Add hspec-discover to PATH (#28)
Browse files Browse the repository at this point in the history
* Add hspec-discover to PATH

* swap space for underscore

* update .envrc.sample
  • Loading branch information
manuphatak committed Dec 23, 2020
1 parent 571ee8b commit 1559fce
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions .envrc.sample
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
PATH_add bin
PATH_add bin/stack

export SESSION_ID=0000000000
export GITHUB_USER=manuphatak
5 changes: 5 additions & 0 deletions bin/stack/hspec-discover
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euo pipefail


stack exec hspec-discover -- "$@"
4 changes: 2 additions & 2 deletions test/Template/SolutionSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ spec :: Spec
spec = parallel $ do
it "solves Part 1" $ do
input <- readFile "./test/Template/input.txt"
part1 input `shouldBe` "hello santa"
part1 input `shouldBe` "hello_santa"
it "solves Part 2" $ do
input <- readFile "./test/Template/input.txt"
part2 input `shouldBe` "hello santa"
part2 input `shouldBe` "hello_santa"
2 changes: 1 addition & 1 deletion test/Template/input.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
hello santa
hello_santa

0 comments on commit 1559fce

Please sign in to comment.