features/cli/help.feature in genomer-0.0.8 vs features/cli/help.feature in genomer-0.0.9
- old
+ new
@@ -1,20 +1,56 @@
Feature: Listing available commands
In order to know which commands are available
A user can use the help command
To list the available options to the console
- Scenario: Running genomer with no commands
+ @disable-bundler
+ Scenario: Running genomer with no commands outside a project
When I run the genomer command with no arguments
Then the exit status should be 0
And the output should contain:
+ """
+ Use `genomer init NAME` to create a new genomer project called NAME
+
+ """
+
+ @disable-bundler
+ Scenario: Running genomer with the --version flag outside a project
+ When I run the genomer command with the arguments "--version"
+ Then the exit status should be 0
+ And the output should match:
"""
+ Genomer version \d+.\d+.\d+
+ """
+
+ @disable-bundler
+ Scenario: Running genomer with no commands inside a project
+ Given I run the genomer command with the arguments "init project"
+ And I cd to "project"
+ When I run the genomer command with no arguments
+ Then the exit status should be 0
+ And the output should contain:
+ """
genomer COMMAND [options]
run `genomer help` for a list of available commands
"""
- Scenario: Running genomer with the help command
+ @disable-bundler
+ Scenario: Running genomer with the --version flag inside a project
+ Given I run the genomer command with the arguments "init project"
+ And I cd to "project"
+ When I run the genomer command with the arguments "--version"
+ Then the exit status should be 0
+ And the output should match:
+ """
+ Genomer version \d+.\d+.\d+
+ """
+
+ @disable-bundler
+ Scenario: Running the genomer help command inside a genomer project
+ Given I run the genomer command with the arguments "init project"
+ And I cd to "project"
When I run the genomer command with the arguments "help"
Then the exit status should be 0
And the output should contain:
"""
genomer COMMAND [options]