2013-09-27 06:45:55 -04:00
|
|
|
Feature: Installation
|
|
|
|
|
|
|
|
Background:
|
2017-03-19 22:58:09 -04:00
|
|
|
Given a test app without any configuration
|
2013-09-27 06:45:55 -04:00
|
|
|
|
2017-03-19 23:02:38 -04:00
|
|
|
Scenario: The "install" task documentation can be viewed
|
|
|
|
When I run "cap -T"
|
|
|
|
Then the task is successful
|
|
|
|
And contains "cap install" in the output
|
|
|
|
|
2013-09-27 06:45:55 -04:00
|
|
|
Scenario: With default stages
|
2017-03-19 22:58:09 -04:00
|
|
|
When I run "cap install"
|
2013-09-27 06:45:55 -04:00
|
|
|
Then the deploy.rb file is created
|
|
|
|
And the default stage files are created
|
|
|
|
And the tasks folder is created
|
|
|
|
|
|
|
|
Scenario: With specified stages
|
2017-03-19 22:58:09 -04:00
|
|
|
When I run "cap install STAGES=qa,production"
|
2013-09-27 06:45:55 -04:00
|
|
|
Then the deploy.rb file is created
|
|
|
|
And the specified stage files are created
|
|
|
|
And the tasks folder is created
|