Show an error message when git CLI is not available. Closes #1765

This commit is contained in:
Thomas Reynolds 2016-01-19 09:42:49 -08:00
parent 732ac7cbe9
commit 7bf4e4681f
3 changed files with 40 additions and 3 deletions

View file

@ -63,6 +63,13 @@ Feature: Middleman CLI
And the file "Gemfile" should contain "middleman-blog"
And the file ".gitignore" should exist
Scenario: Create an invalid project using Middleman directory
When I run `middleman init MY_PROJECT -T does-not-exist-for-reals`
Then a directory named "MY_PROJECT" should exist
When I cd to "MY_PROJECT"
And the file "Gemfile" should contain "middleman-blog"
And the file ".gitignore" should exist
Scenario: Create a new project using github(user/repository)
When I run `middleman init MY_PROJECT -T middleman/middleman-templates-default` interactively
And I type "y"