Add env recipe keyword feature

This commit is contained in:
Thibault Jouan
2013-08-03 23:06:34 +00:00
parent d677c3aa97
commit a6e27edfd2
3 changed files with 28 additions and 0 deletions

10
features/cli/env.feature Normal file
View File

@@ -0,0 +1,10 @@
Feature: env recipe keyword
Scenario: exposes the internal env object
Given a recipe with:
"""
puts env.current_recipe.filepath
"""
When I execute the recipe
Then the exit status must be 0
And the output must contain exactly "recipe.rb\n"