Unflatten features directory tree
This commit is contained in:
15
features/condition/target.feature
Normal file
15
features/condition/target.feature
Normal file
@@ -0,0 +1,15 @@
|
||||
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"
|
Reference in New Issue
Block a user