Flatten features directory tree

This commit is contained in:
Thibault Jouan
2014-05-29 14:20:02 +00:00
parent d4d1657a4a
commit bff6b85e8e
26 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
@sshd
Feature: `file_replace_content' task action
Background:
Given a remote file named "some_file" with "some content"
Scenario: replaces a string by another in the requested file
Given a recipe with:
"""
target 'some_host.test'
task :replace_string_in_file do
file_replace_content 'some_file', 'content', 'other content'
end
"""
When I successfully execute the recipe
And the remote file "some_file" must contain exactly "some other content"
Scenario: replaces a regular expression by a string in the requested file
Given a recipe with:
"""
target 'some_host.test'
task :replace_regexp_in_file do
file_replace_content 'some_file', /\w+\z/, 'other content'
end
"""
When I successfully execute the recipe
And the remote file "some_file" must contain exactly "some other content"