summaryrefslogtreecommitdiff
path: root/features/steps
diff options
context:
space:
mode:
authorThom May <thom.may@betfair.com>2010-07-12 12:15:51 +0100
committerSeth Falcon <seth@opscode.com>2010-11-01 10:44:52 -0700
commit4d0fd3a0f43495d0aad2b88158a0248595e36321 (patch)
tree8ab2343ef34c2c59854f09dc79f074ae8d688cde /features/steps
parent16302e94840a5682be7bbe29c343ec8b8bcacab6 (diff)
downloadchef-4d0fd3a0f43495d0aad2b88158a0248595e36321.tar.gz
add cucumber step for putting versioned recipes on the run list
Diffstat (limited to 'features/steps')
-rw-r--r--features/steps/node_steps.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/features/steps/node_steps.rb b/features/steps/node_steps.rb
index c6f4b461a7..f69f4305d1 100644
--- a/features/steps/node_steps.rb
+++ b/features/steps/node_steps.rb
@@ -47,6 +47,12 @@ Given /^it includes the recipe '(.+)'$/ do |recipe|
client.node.save
end
+Given /it includes the recipe '(.+)' at version '(.+)'$/ do |recipe, version|
+ self.recipe = "recipe[#{recipe},#{version}]"
+ client.node.run_list << "recipe[#{recipe},#{version}]"
+ client.save_node
+end
+
Given /^it includes no recipes$/ do
self.recipe = ""
client.node.run_list.reset!