Fix wording in `file_replace_content' scenarios

This commit is contained in:
Thibault Jouan 2014-03-05 02:14:36 +00:00
parent c858972eee
commit b1c7ff27b4

View File

@ -4,7 +4,7 @@ Feature: `file_replace_content' task action
Background: Background:
Given a remote file named "some_file" with "some content" 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: Given a recipe with:
""" """
target 'some_host.test' target 'some_host.test'
@ -17,12 +17,12 @@ Feature: `file_replace_content' task action
Then the exit status must be 0 Then the exit status must be 0
And the remote file "some_file" must contain exactly "some other content" 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: Given a recipe with:
""" """
target 'some_host.test' 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' file_replace_content 'some_file', /\w+\z/, 'other content'
end end
""" """