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' file_replace_content 'some_file', 'content', 'other content'
end end
""" """
When I execute the recipe When I successfully execute the recipe
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: replaces a regular expression by a string in the requested file 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' file_replace_content 'some_file', /\w+\z/, 'other content'
end end
""" """
When I execute the recipe When I successfully execute the recipe
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"

View File

@ -10,6 +10,5 @@ Feature: `file_write' task action
file_write 'some_file', 'some_content' file_write 'some_file', 'some_content'
end end
""" """
When I execute the recipe When I successfully execute the recipe
Then the exit status must be 0
And the remote file "some_file" must contain "some_content" And the remote file "some_file" must contain "some_content"