summaryrefslogtreecommitdiff
path: root/spec/unit/knife/client_create_spec.rb
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/unit/knife/client_create_spec.rb
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/unit/knife/client_create_spec.rb')
-rw-r--r--spec/unit/knife/client_create_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/knife/client_create_spec.rb b/spec/unit/knife/client_create_spec.rb
index de0888f375..d8b67de101 100644
--- a/spec/unit/knife/client_create_spec.rb
+++ b/spec/unit/knife/client_create_spec.rb
@@ -81,7 +81,7 @@ describe Chef::Knife::ClientCreate do
it "prints a relevant error message" do
expect { knife.run }.to raise_error(SystemExit)
- expect(stderr.string).to match /You cannot pass --public-key and --prevent-keygen/
+ expect(stderr.string).to match(/You cannot pass --public-key and --prevent-keygen/)
end
end
@@ -93,7 +93,7 @@ describe Chef::Knife::ClientCreate do
it "should print a message upon creation" do
expect(knife).to receive(:create_client)
knife.run
- expect(stderr.string).to match /Created client.*adam/i
+ expect(stderr.string).to match(/Created client.*adam/i)
end
it "should set the Client name" do