Fix wording in `file_replace_content' scenarios
This commit is contained in:
parent
c858972eee
commit
b1c7ff27b4
@ -4,7 +4,7 @@ Feature: `file_replace_content' task action
|
||||
Background:
|
||||
Given a remote file named "some_file" with "some content"
|
||||
|
||||
Scenario: replace a string by another in the requested file
|
||||
Scenario: replaces a string by another in the requested file
|
||||
Given a recipe with:
|
||||
"""
|
||||
target 'some_host.test'
|
||||
@ -17,12 +17,12 @@ Feature: `file_replace_content' task action
|
||||
Then the exit status must be 0
|
||||
And the remote file "some_file" must contain exactly "some other content"
|
||||
|
||||
Scenario: replace a regular expression by a string in the requested file
|
||||
Scenario: replaces a regular expression by a string in the requested file
|
||||
Given a recipe with:
|
||||
"""
|
||||
target 'some_host.test'
|
||||
|
||||
task :replace_string_in_file do
|
||||
task :replace_regexp_in_file do
|
||||
file_replace_content 'some_file', /\w+\z/, 'other content'
|
||||
end
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user