middleman/middleman-core/features/cli_init.feature

38 lines
1.5 KiB
Gherkin
Raw Normal View History

Feature: Middleman CLI
Scenario: Create a new project
2015-01-04 22:06:14 +01:00
Given I run `middleman init --default MY_PROJECT`
Then the exit status should be 0
2011-12-16 07:11:59 +01:00
When I cd to "MY_PROJECT"
Then the following files should exist:
| Gemfile |
| .gitignore |
2011-12-16 07:11:59 +01:00
| config.rb |
| source/index.html.erb |
| source/layouts/layout.erb |
| source/javascripts/all.js |
2015-01-04 22:06:14 +01:00
| source/stylesheets/site.css.scss |
| source/stylesheets/_normalize.scss |
Scenario: Create a new project in the current directory
Given a directory named "MY_PROJECT"
When I cd to "MY_PROJECT"
2015-01-04 22:06:14 +01:00
And I run `middleman init --default`
Then the exit status should be 0
And the following files should exist:
| Gemfile |
| config.rb |
| source/index.html.erb |
2011-12-21 21:13:28 +01:00
Scenario: Create a new project (alias i)
2015-01-04 22:06:14 +01:00
When I run `middleman i --default MY_PROJECT`
2011-12-21 21:13:28 +01:00
Then a directory named "MY_PROJECT" should exist
Scenario: Create a new project (alias new)
2015-01-04 22:06:14 +01:00
When I run `middleman new --default MY_PROJECT`
2011-12-21 21:13:28 +01:00
Then a directory named "MY_PROJECT" should exist
Scenario: Create a new project (alias n)
2015-01-04 22:06:14 +01:00
When I run `middleman n --default MY_PROJECT`
2011-12-21 21:13:28 +01:00
Then a directory named "MY_PROJECT" should exist