2014-11-18 11:58:23 +00:00

16 lines
331 B
Gherkin

Feature: `target' condition keyword
Scenario: returns the current target
Given a recipe with:
"""
target 'some_host.example'
task :test_target do
condition { target == 'some_host.example' }
echo 'OK'
end
"""
When I execute the recipe
Then the output must contain "OK"