diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-10-30 10:01:05 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-10-30 10:01:05 -0700 |
commit | 6317fe5cc33d1879a1f3243d877a3ef1570c9a8d (patch) | |
tree | 2ae8bd71591f41e188ad7f39f967ad39f8a4068b /spec/unit/resource | |
parent | 98f35a1bcbd045e435f823f1f4dbcab9a9be42c2 (diff) | |
download | chef-6317fe5cc33d1879a1f3243d877a3ef1570c9a8d.tar.gz |
Simplify regexes by removing extra character classes
We're working too hard here. No need for these.
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit/resource')
-rw-r--r-- | spec/unit/resource/breakpoint_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/resource/breakpoint_spec.rb b/spec/unit/resource/breakpoint_spec.rb index 0804c27cab..4b1aed6f8e 100644 --- a/spec/unit/resource/breakpoint_spec.rb +++ b/spec/unit/resource/breakpoint_spec.rb @@ -58,7 +58,7 @@ describe Chef::Resource::Breakpoint do it "names itself after the line number of the file where it's created" do resource = Chef::Resource::Breakpoint.new - expect(resource.name).to match(/breakpoint_spec\.rb\:[\d]{2}\:in \`new\'$/) + expect(resource.name).to match(/breakpoint_spec\.rb\:\d{2}\:in \`new\'$/) end end |