Refactor features
This commit is contained in:
1 parent
959ffca4e9
commit
a033e19583
15 files changed
+40
-63
No files matched your search
@@ -6,8 +6,6 @@ Feature: `file_replace_content' task action
|
||||
And a remote file named "other_file" with "some content"
|
||||
And a recipe with:
|
||||
"""
|
||||
target 'some_host.test'
|
||||
|
||||
task :file_replace_content_action_string do
|
||||
file_replace_content 'some_file', 'content', 'other content'
|
||||
end
|
||||
@@ -18,9 +16,9 @@ Feature: `file_replace_content' task action
|
||||
"""
|
||||
|
||||
Scenario: replaces a string by another in the requested file
|
||||
When I successfully execute the recipe
|
||||
When I successfully execute the recipe on remote target
|
||||
Then the remote file "some_file" must contain exactly "some other content"
|
||||
|
||||
Scenario: replaces a regular expression by a string in the requested file
|
||||
When I successfully execute the recipe
|
||||
When I successfully execute the recipe on remote target
|
||||
Then the remote file "other_file" must contain exactly "some other content"
|
||||
Reference in new issue
Block a user