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/support | |
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/support')
-rw-r--r-- | spec/support/shared/unit/knife_shared.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/shared/unit/knife_shared.rb b/spec/support/shared/unit/knife_shared.rb index ebdf7bddc7..3c7459cfcc 100644 --- a/spec/support/shared/unit/knife_shared.rb +++ b/spec/support/shared/unit/knife_shared.rb @@ -33,7 +33,7 @@ shared_examples_for "mandatory field missing" do it "prints a relevant error message" do expect { knife.run }.to raise_error(SystemExit) - expect(stderr.string).to match /You must specify a #{fieldname}/ + expect(stderr.string).to match(/You must specify a #{fieldname}/) end end end |