From 6317fe5cc33d1879a1f3243d877a3ef1570c9a8d Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Fri, 30 Oct 2020 10:01:05 -0700 Subject: Simplify regexes by removing extra character classes We're working too hard here. No need for these. Signed-off-by: Tim Smith --- spec/unit/resource/breakpoint_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/unit/resource') 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 -- cgit v1.2.1