producer-core/features/recipes/registry.feature
Thibault Jouan f92ad8128d Implement set' and get' recipe keywords:
`set' registers a value at given index in env registry, `get'
retrieves a value at given index.
2014-01-21 17:11:17 +00:00

22 lines
548 B
Gherkin

Feature: key/value registry
Scenario: `set' keyword registers a value in the registry
Given a recipe with:
"""
set :some_key, 'some_value'
puts env.registry[:some_key]
"""
When I successfully execute the recipe
Then the output must contain "some_value"
Scenario: `get' keyword fetches a value from the registry
Given a recipe with:
"""
set :some_key, 'some_value'
puts get :some_key
"""
When I successfully execute the recipe
Then the output must contain "some_value"