diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-11-21 21:21:10 -0800 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-11-21 21:21:10 -0800 |
commit | 1002fd4449e7d8e95aa09586d31220d6897d7a2c (patch) | |
tree | 4da5f6c58417e70e08438290555d71298d2e3b8b /spec/unit/knife/user_create_spec.rb | |
parent | 2478b8252d3c701da2e0fd4835028da53c59c498 (diff) | |
download | chef-ambiguous_regex.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/user_create_spec.rb')
-rw-r--r-- | spec/unit/knife/user_create_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/knife/user_create_spec.rb b/spec/unit/knife/user_create_spec.rb index 3c9a9d3a78..be3d2fd99c 100644 --- a/spec/unit/knife/user_create_spec.rb +++ b/spec/unit/knife/user_create_spec.rb @@ -112,7 +112,7 @@ describe Chef::Knife::UserCreate do it "prints a relevant error message" do expect { knife.run }.to raise_error(SystemExit) - expect(stderr.string).to match /You cannot pass --user-key and --prevent-keygen/ + expect(stderr.string).to match(/You cannot pass --user-key and --prevent-keygen/) end end |