summaryrefslogtreecommitdiff
path: root/spec/unit/resource
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-10-30 10:01:05 -0700
committerTim Smith <tsmith84@gmail.com>2020-10-30 10:01:05 -0700
commit6317fe5cc33d1879a1f3243d877a3ef1570c9a8d (patch)
tree2ae8bd71591f41e188ad7f39f967ad39f8a4068b /spec/unit/resource
parent98f35a1bcbd045e435f823f1f4dbcab9a9be42c2 (diff)
downloadchef-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.rb2
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