diff options
Diffstat (limited to 'spec/integration/recipes')
-rw-r--r-- | spec/integration/recipes/notifies_spec.rb | 2 | ||||
-rw-r--r-- | spec/integration/recipes/provider_choice.rb | 4 |
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 |