diff --git a/tooling/lib/tooling/test_file_finder.rb b/tooling/lib/tooling/test_file_finder.rb index 2a61a9b8c804f588d5e8d4d4e79c22949c531ce4..3435a082ba86d34188932a95bb5a25bb8a8a6ec6 100644 --- a/tooling/lib/tooling/test_file_finder.rb +++ b/tooling/lib/tooling/test_file_finder.rb @@ -1,6 +1,5 @@ # frozen_string_literal: true -require 'ostruct' require 'set' module Tooling @@ -48,13 +47,13 @@ def ee_matcher TestFileMatcher.new do |matcher| unless foss_test_only matcher.associate(%r{^#{EE_PREFIX}app/(.+)\.rb$}) { |match| "#{EE_PREFIX}spec/#{match[1]}_spec.rb" } - matcher.associate(%r{^#{EE_PREFIX}app/(.*\/)ee/(.+)\.rb$}) { |match| "#{EE_PREFIX}spec/#{match[1]}#{match[2]}_spec.rb" } + matcher.associate(%r{^#{EE_PREFIX}app/(.*/)ee/(.+)\.rb$}) { |match| "#{EE_PREFIX}spec/#{match[1]}#{match[2]}_spec.rb" } matcher.associate(%r{^#{EE_PREFIX}lib/(.+)\.rb$}) { |match| "#{EE_PREFIX}spec/lib/#{match[1]}_spec.rb" } matcher.associate(%r{^#{EE_PREFIX}spec/(.+)_spec.rb$}) { |match| match[0] } end - matcher.associate(%r{^#{EE_PREFIX}(?!spec)(.*\/)ee/(.+)\.rb$}) { |match| "spec/#{match[1]}#{match[2]}_spec.rb" } - matcher.associate(%r{^#{EE_PREFIX}spec/(.*\/)ee/(.+)\.rb$}) { |match| "spec/#{match[1]}#{match[2]}.rb" } + matcher.associate(%r{^#{EE_PREFIX}(?!spec)(.*/)ee/(.+)\.rb$}) { |match| "spec/#{match[1]}#{match[2]}_spec.rb" } + matcher.associate(%r{^#{EE_PREFIX}spec/(.*/)ee/(.+)\.rb$}) { |match| "spec/#{match[1]}#{match[2]}.rb" } end end