aboutsummaryrefslogtreecommitdiff
path: root/specs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--specs/Specs/FooSpec.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/specs/Specs/FooSpec.hs b/specs/Specs/FooSpec.hs
index 24545f9..d79ce9e 100644
--- a/specs/Specs/FooSpec.hs
+++ b/specs/Specs/FooSpec.hs
@@ -52,7 +52,8 @@ test = do
describe "parseCommand" $ do
context "when given an invalid command" $ do
it "returns Nothing" $ do
- parseCommand "aklsdjijm" `shouldBe` Nothing
+ parseCommand "foobar arg1 arg2" `shouldBe` Just (CmdCustom "foobar" "arg1 arg2")
+
context "when empty command" $ do
it "returns Nothing" $ do
parseCommand "" `shouldBe` Nothing