features/help.feature in usaidwat-1.0.1 vs features/help.feature in usaidwat-1.1.0
- old
+ new
@@ -2,19 +2,31 @@
As a Redditor
I want to be able to list help information for usaidwat
In order to learn how to use it
+ Scenario: Pass no arguments
+ Given the Reddit service returns comments for the user "mipadi"
+ When I run `usaidwat`
+ Then it should pass with:
+ """
+ Usage:
+
+ usaidwat <command> [options] <args>
+ """
+
Scenario: List usage details
When I run `usaidwat --help`
Then it should pass with:
"""
- Commands:
+ Usage:
+
+ usaidwat <command> [options] <args>
"""
Scenario: Get version
When I run `usaidwat --version`
Then the exit status should be 0
- And the stdout should contain:
+ And the output should match:
"""
- usaidwat v
+ usaidwat [0-9]+\.[0-9]+\.[0-9]+
"""