Refactor some cucumber scenarios
This commit is contained in:
parent
387f37f3f5
commit
b92dfcc9b7
@ -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"
|
||||
|
@ -10,6 +10,5 @@ Feature: `file_write' task action
|
||||
file_write 'some_file', 'some_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 "some_content"
|
||||
|
Loading…
x
Reference in New Issue
Block a user