Skip to content

Commit

Permalink
Make tests pass with hspec < 2.11.7 (close #125)
Browse files Browse the repository at this point in the history
  • Loading branch information
sol committed Nov 12, 2023
1 parent ac1c58a commit 5c11026
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/TriggerSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ spec = do
, " Spec.hs:8:3: "
, " 1) bar"
, ""
#if MIN_VERSION_hspec(2,11,7)
, " To rerun use: --match \"/bar/\" --seed 0"
#else
, " To rerun use: --match \"/bar/\""
#endif
, ""
, "Randomized with seed 0"
, ""
Expand Down Expand Up @@ -221,7 +225,11 @@ spec = do
, " Spec.hs:8:3: "
, " 1) bar"
, ""
#if MIN_VERSION_hspec(2,11,7)
, " To rerun use: --match \"/bar/\" --seed 0"
#else
, " To rerun use: --match \"/bar/\""
#endif
, ""
, "Randomized with seed 0"
, ""
Expand Down

0 comments on commit 5c11026

Please sign in to comment.