features/cli/help.feature in genomer-0.0.10 vs features/cli/help.feature in genomer-0.1.0
- old
+ new
@@ -24,10 +24,14 @@
@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"
+ And I overwrite "Gemfile" with:
+ """
+ gem 'genomer', :path => '../../../'
+ """
When I run the genomer command with no arguments
Then the exit status should be 0
And the output should contain:
"""
genomer COMMAND [options]
@@ -37,10 +41,14 @@
@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"
+ And I overwrite "Gemfile" with:
+ """
+ gem 'genomer', :path => '../../../'
+ """
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+
@@ -48,10 +56,14 @@
@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"
+ And I overwrite "Gemfile" with:
+ """
+ gem 'genomer', :path => '../../../'
+ """
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]
@@ -71,9 +83,10 @@
Scenario: Running help with a single genomer plugins specified
Given I run the genomer command with the arguments "init project"
And I cd to "project"
And I overwrite "Gemfile" with:
"""
+ gem 'genomer', :path => '../../../'
gem 'genomer-plugin-simple', :path => '../../../genomer-plugin-simple'
"""
When I run the genomer command with the arguments "help"
Then the exit status should be 0
And the output should contain: