Allow `target' recipe keyword to return target

This commit is contained in:
Thibault Jouan committed 2014-09-25 14:57:27 +00:00
1 parent eba719941d
commit b11d0b6950
3 files changed
+20 -3

No files matched your search

+11 -1
View File
@@ -10,4 +10,14 @@ Feature: `target' recipe keyword
end
"""
When I successfully execute the recipe
Then the output must contain exactly "some_host.example\n"
Then the output must contain "some_host.example"
Scenario: returns current target when no arguments are provided
Given a recipe with:
"""
target 'some_host.example'
env.output.puts target
"""
When I successfully execute the recipe
Then the output must contain "some_host.example"