diff --git a/features/actions/file_replace_content.feature b/features/actions/file_replace_content.feature index d476b62..ab73fa9 100644 --- a/features/actions/file_replace_content.feature +++ b/features/actions/file_replace_content.feature @@ -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" diff --git a/features/actions/file_write.feature b/features/actions/file_write.feature index eb4682e..9fa3674 100644 --- a/features/actions/file_write.feature +++ b/features/actions/file_write.feature @@ -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"