producer-core/features/actions/file_append.feature
Thibault Jouan feef44b255 Refactor recipe execution in cucumber features
Mock home directory in `run_recipe' helper, avoid the need to use
@mocked_home_directory in many scenarios.
2015-04-06 08:47:46 +00:00

16 lines
441 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:
"""
task :file_append_action do
file_append 'some_file', ' added'
end
"""
When I successfully execute the recipe on remote target
Then the remote file "some_file" must contain exactly "some content added"