Refactor features
This commit is contained in:
@@ -4,8 +4,6 @@ Feature: negated test prefix (no_)
|
||||
Scenario: prefixed test fails when non-prefixed test is successful
|
||||
Given a recipe with:
|
||||
"""
|
||||
target 'some_host.test'
|
||||
|
||||
task :successful_test do
|
||||
condition { env? :shell }
|
||||
|
||||
@@ -18,15 +16,13 @@ Feature: negated test prefix (no_)
|
||||
echo 'negated_test'
|
||||
end
|
||||
"""
|
||||
When I successfully execute the recipe
|
||||
When I successfully execute the recipe on remote target
|
||||
Then the output must contain "successful_test"
|
||||
And the output must not contain "negated_test"
|
||||
|
||||
Scenario: prefixed test fails when non-prefixed test is failing
|
||||
Given a recipe with:
|
||||
"""
|
||||
target 'some_host.test'
|
||||
|
||||
task :failing_test do
|
||||
condition { env? :inexistent_var }
|
||||
|
||||
@@ -39,6 +35,6 @@ Feature: negated test prefix (no_)
|
||||
echo 'negated_test'
|
||||
end
|
||||
"""
|
||||
When I successfully execute the recipe
|
||||
When I successfully execute the recipe on remote target
|
||||
Then the output must not contain "failing_test"
|
||||
And the output must contain "negated_test"
|
||||
|
Reference in New Issue
Block a user