Remove error handling for evaluation errors

This commit is contained in:
Thibault Jouan
2013-08-13 00:11:53 +00:00
parent 0904fa1fc9
commit a5d9ca26f4
12 changed files with 1 additions and 146 deletions

View File

@@ -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'
"""

View File

@@ -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:.+
"""

View File

@@ -10,17 +10,3 @@ Feature: task 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 for invalid action calls in a task
Given a recipe with:
"""
task 'some_task' do
invalid_action
end
"""
When I execute the recipe
Then the exit status must be 70
And the output must match:
"""
\Arecipe.rb:2:.+invalid task action `invalid_action'
"""