Skip to content

Commit 9a93627

Browse files
Thom MaySeth Falcon
authored andcommitted
clean up regexes for run list steps
1 parent 6ffe59f commit 9a93627

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

features/steps/node_steps.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@
4141
end
4242

4343

44-
Given /^it includes the recipe '(.+)'$/ do |recipe|
44+
Given /^it includes the recipe '([^\']+)'$/ do |recipe|
4545
self.recipe = recipe
4646
client.node.run_list << recipe
4747
client.node.save
4848
end
4949

50-
Given /it includes the recipe '(.+)' at version '(.+)'$/ do |recipe, version|
50+
Given /^it includes the recipe '([^\']+)' at version '([^\']+)'$/ do |recipe, version|
5151
self.recipe = "recipe[#{recipe},#{version}]"
5252
client.node.run_list << "recipe[#{recipe},#{version}]"
5353
client.save_node
@@ -59,7 +59,7 @@
5959
client.node.save
6060
end
6161

62-
Given /^it includes the role '(.+)'$/ do |role|
62+
Given /^it includes the role '([^\']+)'$/ do |role|
6363
self.recipe = "role[#{role}]"
6464
client.node.run_list << "role[#{role}]"
6565
client.node.save

0 commit comments

Comments
 (0)