Refactor features

This commit is contained in:
Thibault Jouan
2014-07-18 12:23:17 +00:00
parent 959ffca4e9
commit a033e19583
15 changed files with 40 additions and 63 deletions

View File

@@ -4,8 +4,6 @@ Feature: `file_write' task action
Background:
Given a recipe with:
"""
target 'some_host.test'
task :file_write_action do
file_write 'some_file', 'some_content'
file_write 'some_file_0600', 'some_content', 0600
@@ -14,10 +12,10 @@ Feature: `file_write' task action
"""
Scenario: writes given data to given file path
When I successfully execute the recipe
When I successfully execute the recipe on remote target
Then the remote file "some_file" must contain "some_content"
Scenario: creates file with given permissions
When I successfully execute the recipe
When I successfully execute the recipe on remote target
Then the remote file "some_file_0600" must have 0600 mode
And the remote file "some_file_0700" must have 0700 mode