summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorAdam Jacob <adam@opscode.com>2009-05-28 09:49:10 -0700
committerAdam Jacob <adam@opscode.com>2009-05-28 09:49:10 -0700
commitb134af4a053eda678e0e04e165743a5b3d91606c (patch)
tree29b23cd2cdbd12fafb49f77d62a470ac8af6c86c /features
parentfb1431585170b3cd178e04f8b5f033898d97de91 (diff)
downloadchef-b134af4a053eda678e0e04e165743a5b3d91606c.tar.gz
Fixing up a bug in the Role/Node UI that showed cookbooks where it should have been showing recipes, adding more integration tests for roles
Diffstat (limited to 'features')
-rw-r--r--features/chef-client/roles.feature1
-rw-r--r--features/steps/node_steps.rb6
2 files changed, 4 insertions, 3 deletions
diff --git a/features/chef-client/roles.feature b/features/chef-client/roles.feature
index 80a3de016f..267fa4e1f2 100644
--- a/features/chef-client/roles.feature
+++ b/features/chef-client/roles.feature
@@ -10,3 +10,4 @@ Feature: Configure nodes based on their role
When I run the chef-client with '-l debug'
Then the run should exit '0'
+
diff --git a/features/steps/node_steps.rb b/features/steps/node_steps.rb
index 7152b6c996..d1aa9a0045 100644
--- a/features/steps/node_steps.rb
+++ b/features/steps/node_steps.rb
@@ -33,9 +33,9 @@ Given /^it includes the recipe '(.+)'$/ do |recipe|
client.save_node
end
-Given /^it includes the role '(.+)'$/ do |recipe|
- self.recipe = recipe
- client.node.recipes << recipe
+Given /^it includes the role '(.+)'$/ do |role|
+ self.recipe = "role[#{role}]"
+ client.node.run_list << "role[#{role}]"
client.save_node
end