middleman/middleman-core/features/cli_init.feature

40 lines
1.6 KiB
Gherkin
Raw Normal View History

Feature: Middleman CLI
Scenario: Create a new project
Given I run `middleman init 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/images/background.png |
| source/images/middleman.png |
| source/layouts/layout.erb |
| source/javascripts/all.js |
2012-01-02 23:48:47 +01:00
| source/stylesheets/all.css |
| source/stylesheets/normalize.css |
Scenario: Create a new project in the current directory
Given a directory named "MY_PROJECT"
When I cd to "MY_PROJECT"
And I run `middleman init`
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)
When I run `middleman i MY_PROJECT`
Then a directory named "MY_PROJECT" should exist
Scenario: Create a new project (alias new)
2011-12-21 21:13:28 +01:00
When I run `middleman new MY_PROJECT`
Then a directory named "MY_PROJECT" should exist
Scenario: Create a new project (alias n)
2011-12-21 21:13:28 +01:00
When I run `middleman n MY_PROJECT`
Then a directory named "MY_PROJECT" should exist