Unflatten features directory tree

This commit is contained in:
Thibault Jouan
2014-11-18 11:58:23 +00:00
parent 86a84bbe12
commit 2d3975d47f
36 changed files with 1 additions and 0 deletions

23
features/task/ask.feature Normal file
View File

@@ -0,0 +1,23 @@
Feature: `ask' task keyword
@exec
Scenario: prompts user with a list of choices on standard output
Given a recipe with:
"""
task :ask_letter do
letter = ask 'Which letter?', [[:a, ?A], [:b, ?B]]
echo letter.inspect
end
"""
When I execute the recipe interactively
And I type "1"
Then the output must contain:
"""
Which letter?
0: A
1: B
Choice:
:b
"""
And the exit status must be 0