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: `mkdir' task action
Background:
Given a recipe with:
"""
target 'some_host.test'
task :mkdir_action do
mkdir 'some_directory'
mkdir 'some_directory_0700', 0700
@@ -14,10 +12,10 @@ Feature: `mkdir' task action
"""
Scenario: creates directory given as argument
When I successfully execute the recipe
When I successfully execute the recipe on remote target
Then the remote directory "some_directory" must exists
Scenario: creates directory with given permissions
When I successfully execute the recipe
When I successfully execute the recipe on remote target
Then the remote directory "some_directory_0700" must have 0700 mode
And the remote directory "some_directory_0500" must have 0500 mode