diff options
author | Thom May <thom.may@betfair.com> | 2010-07-12 16:07:48 +0100 |
---|---|---|
committer | Seth Falcon <seth@opscode.com> | 2010-11-01 10:44:53 -0700 |
commit | 9a93627307a241fe9fffbb815106bd1e2e676aee (patch) | |
tree | 05e7420de2c3f8bcae16785d1e13334b2e144ddb /features/steps | |
parent | 6ffe59f3d222875ecef2ad406186f3c644814336 (diff) | |
download | chef-9a93627307a241fe9fffbb815106bd1e2e676aee.tar.gz |
clean up regexes for run list steps
Diffstat (limited to 'features/steps')
-rw-r--r-- | features/steps/node_steps.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/features/steps/node_steps.rb b/features/steps/node_steps.rb index f69f4305d1..247a9232fb 100644 --- a/features/steps/node_steps.rb +++ b/features/steps/node_steps.rb @@ -41,13 +41,13 @@ Given /^a validated node with an empty runlist$/ do end -Given /^it includes the recipe '(.+)'$/ do |recipe| +Given /^it includes the recipe '([^\']+)'$/ do |recipe| self.recipe = recipe client.node.run_list << recipe client.node.save end -Given /it includes the recipe '(.+)' at version '(.+)'$/ do |recipe, version| +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 @@ -59,7 +59,7 @@ Given /^it includes no recipes$/ do client.node.save end -Given /^it includes the role '(.+)'$/ do |role| +Given /^it includes the role '([^\']+)'$/ do |role| self.recipe = "role[#{role}]" client.node.run_list << "role[#{role}]" client.node.save |