attempt to fix interactive cli timeout

This commit is contained in:
Thomas Reynolds 2015-01-04 15:23:37 -06:00
parent 8e743aea94
commit 857c99fab5
2 changed files with 26 additions and 6 deletions

View file

@ -1,7 +1,11 @@
Feature: Middleman CLI Feature: Middleman CLI
Scenario: Create a new project Scenario: Create a new project
Given I run `middleman init --default MY_PROJECT` When I run `middleman init MY_PROJECT` interactively
And I type "y"
And I type "y"
And I type "y"
And I type "y"
Then the exit status should be 0 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:
@ -17,7 +21,11 @@ Feature: Middleman CLI
Scenario: Create a new project in the current directory Scenario: Create a new project in the current directory
Given a directory named "MY_PROJECT" Given a directory named "MY_PROJECT"
When I cd to "MY_PROJECT" When I cd to "MY_PROJECT"
And I run `middleman init --default` And I run `middleman init --default` interactively
And I type "y"
And I type "y"
And I type "y"
And I type "y"
Then the exit status should be 0 Then the exit status should be 0
And the following files should exist: And the following files should exist:
| Gemfile | | Gemfile |
@ -25,13 +33,25 @@ Feature: Middleman CLI
| source/index.html.erb | | source/index.html.erb |
Scenario: Create a new project (alias i) Scenario: Create a new project (alias i)
When I run `middleman i --default MY_PROJECT` When I run `middleman i MY_PROJECT` interactively
And I type "y"
And I type "y"
And I type "y"
And I type "y"
Then a directory named "MY_PROJECT" should exist Then a directory named "MY_PROJECT" should exist
Scenario: Create a new project (alias new) Scenario: Create a new project (alias new)
When I run `middleman new --default MY_PROJECT` When I run `middleman new MY_PROJECT` interactively
And I type "y"
And I type "y"
And I type "y"
And I type "y"
Then a directory named "MY_PROJECT" should exist Then a directory named "MY_PROJECT" should exist
Scenario: Create a new project (alias n) Scenario: Create a new project (alias n)
When I run `middleman n --default MY_PROJECT` When I run `middleman n MY_PROJECT` interactively
And I type "y"
And I type "y"
And I type "y"
And I type "y"
Then a directory named "MY_PROJECT" should exist Then a directory named "MY_PROJECT" should exist

View file

@ -17,5 +17,5 @@ end
World(ArubaMonkeypatch) World(ArubaMonkeypatch)
Before do Before do
@aruba_timeout_seconds = RUBY_PLATFORM == 'java' ? 240 : 120 @aruba_timeout_seconds = RUBY_PLATFORM == 'java' ? 120 : 60
end end