producer-core/features/actions/yaml_write.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

15 lines
356 B
Gherkin

@sshd
Feature: `yaml_write' task action
Background:
Given a recipe with:
"""
task :yaml_write_action do
yaml_write 'some_file', data: { foo: 'bar' }
end
"""
Scenario: writes given data as YAML
When I successfully execute the recipe on remote target
Then the remote file "some_file" must match /^:foo: bar$/