Remove error handling for evaluation errors
This commit is contained in:
@@ -8,18 +8,3 @@ Feature: recipe evaluation
|
||||
When I execute the recipe
|
||||
Then the exit status must be 0
|
||||
And the output must contain exactly "hello from recipe\n"
|
||||
|
||||
Scenario: reports errors when evaluating an invalid recipe
|
||||
Given a recipe with:
|
||||
"""
|
||||
puts 'OK'
|
||||
|
||||
invalid_keyword
|
||||
"""
|
||||
When I execute the recipe
|
||||
Then the exit status must be 70
|
||||
And the output must match:
|
||||
"""
|
||||
\AOK
|
||||
recipe.rb:3:.+invalid recipe keyword `invalid_keyword'
|
||||
"""
|
||||
|
@@ -14,18 +14,3 @@ Feature: `source' recipe keyword
|
||||
When I execute the recipe
|
||||
Then the exit status must be 0
|
||||
And the output must contain "sourced recipe"
|
||||
|
||||
Scenario: reports errors from sourced recipes
|
||||
Given a file named "sourced_recipe.rb" with:
|
||||
"""
|
||||
puts 'OK'
|
||||
invalid_keyword
|
||||
"""
|
||||
When I execute the recipe
|
||||
Then the exit status must be 70
|
||||
Then the output must match:
|
||||
"""
|
||||
\AOK
|
||||
sourced_recipe.rb:2:.+invalid recipe keyword `invalid_keyword'
|
||||
recipe.rb:1:.+
|
||||
"""
|
||||
|
Reference in New Issue
Block a user