2011-12-15 16:05:15 -08:00
|
|
|
Feature: Middleman CLI
|
|
|
|
|
|
|
|
Scenario: Create a new project
|
2015-01-04 15:23:37 -06:00
|
|
|
When I run `middleman init MY_PROJECT` interactively
|
|
|
|
And I type "y"
|
|
|
|
And I type "y"
|
|
|
|
And I type "y"
|
|
|
|
And I type "y"
|
2011-12-23 10:58:56 -08:00
|
|
|
Then the exit status should be 0
|
2011-12-15 22:11:59 -08:00
|
|
|
When I cd to "MY_PROJECT"
|
|
|
|
Then the following files should exist:
|
2012-03-24 20:37:03 -07:00
|
|
|
| Gemfile |
|
2012-05-04 21:11:11 -07:00
|
|
|
| .gitignore |
|
2011-12-15 22:11:59 -08:00
|
|
|
| config.rb |
|
2011-12-23 10:58:56 -08:00
|
|
|
| source/index.html.erb |
|
|
|
|
| source/layouts/layout.erb |
|
|
|
|
| source/javascripts/all.js |
|
2015-01-04 15:06:14 -06:00
|
|
|
| source/stylesheets/site.css.scss |
|
|
|
|
| source/stylesheets/_normalize.scss |
|
2014-02-19 23:13:59 -08:00
|
|
|
|
|
|
|
Scenario: Create a new project in the current directory
|
|
|
|
Given a directory named "MY_PROJECT"
|
|
|
|
When I cd to "MY_PROJECT"
|
2015-01-04 15:28:13 -06:00
|
|
|
And I run `middleman init` interactively
|
2015-01-04 15:23:37 -06:00
|
|
|
And I type "y"
|
|
|
|
And I type "y"
|
|
|
|
And I type "y"
|
|
|
|
And I type "y"
|
2014-02-19 23:13:59 -08:00
|
|
|
Then the exit status should be 0
|
|
|
|
And the following files should exist:
|
|
|
|
| Gemfile |
|
|
|
|
| config.rb |
|
|
|
|
| source/index.html.erb |
|
|
|
|
|
2011-12-21 12:13:28 -08:00
|
|
|
Scenario: Create a new project (alias i)
|
2015-01-04 15:23:37 -06:00
|
|
|
When I run `middleman i MY_PROJECT` interactively
|
|
|
|
And I type "y"
|
|
|
|
And I type "y"
|
|
|
|
And I type "y"
|
|
|
|
And I type "y"
|
2011-12-21 12:13:28 -08:00
|
|
|
Then a directory named "MY_PROJECT" should exist
|
2014-02-19 23:13:59 -08:00
|
|
|
|
2012-03-24 20:37:03 -07:00
|
|
|
Scenario: Create a new project (alias new)
|
2015-01-04 15:23:37 -06:00
|
|
|
When I run `middleman new MY_PROJECT` interactively
|
|
|
|
And I type "y"
|
|
|
|
And I type "y"
|
|
|
|
And I type "y"
|
|
|
|
And I type "y"
|
2011-12-21 12:13:28 -08:00
|
|
|
Then a directory named "MY_PROJECT" should exist
|
2014-02-19 23:13:59 -08:00
|
|
|
|
2012-03-24 20:37:03 -07:00
|
|
|
Scenario: Create a new project (alias n)
|
2015-01-04 15:23:37 -06:00
|
|
|
When I run `middleman n MY_PROJECT` interactively
|
|
|
|
And I type "y"
|
|
|
|
And I type "y"
|
|
|
|
And I type "y"
|
|
|
|
And I type "y"
|
2011-12-21 12:13:28 -08:00
|
|
|
Then a directory named "MY_PROJECT" should exist
|