producer-core/features/action_file_append.feature
2014-05-30 19:16:51 +00:00

18 lines
455 B
Gherkin

@sshd
Feature: `file_append' task action
Background:
Given a remote file named "some_file" with "some content"
Scenario: appends given content to requested file
Given a recipe with:
"""
target 'some_host.test'
task :file_append_action do
file_append 'some_file', ' added'
end
"""
When I successfully execute the recipe
Then the remote file "some_file" must contain exactly "some content added"