new default template thanks to @evenwu. closes #188

This commit is contained in:
Thomas Reynolds 2011-12-23 10:58:56 -08:00
parent 557aae372b
commit 82cd984a29
2 changed files with 10 additions and 27 deletions

View file

@ -1,20 +1,19 @@
Feature: Middleman CLI Feature: Middleman CLI
Scenario: Create a new project Scenario: Create a new project
When I run `middleman init MY_PROJECT` Given I run `middleman init MY_PROJECT`
Then a directory named "MY_PROJECT" should exist Then the exit status should be 0
When I cd to "MY_PROJECT" When I cd to "MY_PROJECT"
Then the following files should exist: Then the following files should exist:
| config.rb | | config.rb |
Then the following files should not exist: | source/index.html.erb |
| config.ru | | source/images/background.png |
| Gemfile | | source/images/middleman.png |
Then a directory named "source" should exist | source/layouts/layout.erb |
When I cd to "source" | source/javascripts/all.js |
Then the following files should exist: | source/stylesheets/all.css.scss |
| index.html.erb | | source/stylesheets/_animate.scss |
| layout.erb | | source/stylesheets/_normalize.scss |
| stylesheets/site.css.scss |
Scenario: Create a new project (alias i) Scenario: Create a new project (alias i)
When I run `middleman i MY_PROJECT` When I run `middleman i MY_PROJECT`

View file

@ -1,16 +0,0 @@
Feature: Generator
Scenario: Copying template files
Given I run `middleman init generator-test`
Then the exit status should be 0
When I cd to "generator-test"
Then the following files should exist:
| config.rb |
| source/index.html.erb |
| source/images/background.png |
| source/images/middleman.png |
| source/layouts/layout.erb |
| source/javascripts/all.js |
| source/stylesheets/all.css.scss |
| source/stylesheets/_animate.scss |
| source/stylesheets/_normalize.scss |