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/tag_create_spec.rb | |
parent | 2478b8252d3c701da2e0fd4835028da53c59c498 (diff) | |
download | chef-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/tag_create_spec.rb')
-rw-r--r-- | spec/unit/knife/tag_create_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/knife/tag_create_spec.rb b/spec/unit/knife/tag_create_spec.rb index 6a3ced3f5b..a1a4923871 100644 --- a/spec/unit/knife/tag_create_spec.rb +++ b/spec/unit/knife/tag_create_spec.rb @@ -17,7 +17,7 @@ describe Chef::Knife::TagCreate do it "can create tags on a node" do @knife.run expect(@node.tags).to eq(["happytag"]) - expect(@stderr.string).to match /created tags happytag.+node webmonkey.example.com/i + expect(@stderr.string).to match(/created tags happytag.+node webmonkey.example.com/i) end end end |