* Improve error reporting from sourced recipe; * Extract cucumber feature from recipe one.
26 lines
600 B
Gherkin
26 lines
600 B
Gherkin
Feature: recipe evaluation
|
|
|
|
Scenario: evaluates ruby code in a recipe
|
|
Given a recipe with:
|
|
"""
|
|
puts 'hello from recipe'
|
|
"""
|
|
When I execute the recipe
|
|
Then the exit status must be 0
|
|
And the output must contain "hello from recipe"
|
|
|
|
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'
|
|
"""
|