Refactor some cucumber scenarios

This commit is contained in:
Thibault Jouan
2014-03-05 03:04:57 +00:00
parent 387f37f3f5
commit b92dfcc9b7
2 changed files with 3 additions and 6 deletions

View File

@@ -13,8 +13,7 @@ Feature: `file_replace_content' task action
file_replace_content 'some_file', 'content', 'other content'
end
"""
When I execute the recipe
Then the exit status must be 0
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
@@ -26,6 +25,5 @@ Feature: `file_replace_content' task action
file_replace_content 'some_file', /\w+\z/, 'other content'
end
"""
When I execute the recipe
Then the exit status must be 0
When I successfully execute the recipe
And the remote file "some_file" must contain exactly "some other content"