Implement tasks condition feature

This commit is contained in:
Thibault Jouan
2013-07-28 22:47:32 +00:00
parent 16134bf827
commit d146566411
3 changed files with 70 additions and 6 deletions

View File

@@ -0,0 +1,15 @@
Feature: condition
Scenario: prevents task evaluation when condition is not met
Given a recipe with:
"""
task :hello do
condition { false }
puts 'evaluated'
exit 70
end
"""
When I execute the recipe
Then the exit status must be 0
And the output must not contain "evaluated"