producer-core/features/actions/file_write.feature
2013-12-20 06:26:21 +00:00

16 lines
383 B
Gherkin

@sshd
Feature: `file_write' task action
Scenario: writes given data to given file path
Given a recipe with:
"""
target 'some_host.test'
task :write_some_data do
file_write 'some_file', 'some_content'
end
"""
When I execute the recipe
Then the exit status must be 0
And the remote file "some_file" must contain "some_content"