Refactor and fix features

This commit is contained in:
Thibault Jouan
2014-05-29 14:31:13 +00:00
parent 237e6db740
commit 2fecb4bde4
18 changed files with 126 additions and 178 deletions

View File

@@ -1,6 +1,6 @@
Feature: `macro' recipe keyword
Scenario: declares new keyword accepting task code
Scenario: declares a new keyword accepting task code
Given a recipe with:
"""
macro :hello do
@@ -28,7 +28,7 @@ Feature: `macro' recipe keyword
Given a recipe with:
"""
macro :my_echo do |message|
condition { message =~ /bar/ }
condition { message =~ /foo/ }
echo message
end
@@ -36,5 +36,5 @@ Feature: `macro' recipe keyword
%w[foo bar].each { |e| my_echo e }
"""
When I successfully execute the recipe
Then the output must not contain "foo"
And the output must contain "bar"
Then the output must contain "foo"
And the output must not contain "bar"