summaryrefslogtreecommitdiff
path: root/spec/integration/recipes
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-11-21 21:21:10 -0800
committerTim Smith <tsmith84@gmail.com>2020-11-21 21:21:10 -0800
commit1002fd4449e7d8e95aa09586d31220d6897d7a2c (patch)
tree4da5f6c58417e70e08438290555d71298d2e3b8b /spec/integration/recipes
parent2478b8252d3c701da2e0fd4835028da53c59c498 (diff)
downloadchef-1002fd4449e7d8e95aa09586d31220d6897d7a2c.tar.gz
Avoid ambiguous regexesambiguous_regex
Just makes it a bit easier to read. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/integration/recipes')
-rw-r--r--spec/integration/recipes/notifies_spec.rb2
-rw-r--r--spec/integration/recipes/provider_choice.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/integration/recipes/notifies_spec.rb b/spec/integration/recipes/notifies_spec.rb
index a31ba6370b..7dfa70dfe5 100644
--- a/spec/integration/recipes/notifies_spec.rb
+++ b/spec/integration/recipes/notifies_spec.rb
@@ -416,7 +416,7 @@ describe "notifications" do
EOM
result = shell_out("#{chef_client} -c \"#{path_to("config/client.rb")}\" --no-color -F doc -o 'x::default'", cwd: chef_dir)
- expect(result.stdout).to match /\* log\[a, b\] action write/
+ expect(result.stdout).to match(/\* log\[a, b\] action write/)
result.error!
end
diff --git a/spec/integration/recipes/provider_choice.rb b/spec/integration/recipes/provider_choice.rb
index 66aa58a432..f1d57260b6 100644
--- a/spec/integration/recipes/provider_choice.rb
+++ b/spec/integration/recipes/provider_choice.rb
@@ -30,8 +30,8 @@ describe "Recipe DSL methods" do
recipe = converge do
provider_thingy("blah") {}
end
- expect(recipe.logged_warnings).to match /hello from Chef::Provider::ProviderThingy/
- expect(recipe.logged_warnings).to match /you must use 'provides' to provide DSL/i
+ expect(recipe.logged_warnings).to match(/hello from Chef::Provider::ProviderThingy/)
+ expect(recipe.logged_warnings).to match(/you must use 'provides' to provide DSL/i)
end
end
end