diff --git a/spec/coverage_helper.rb b/spec/coverage_helper.rb index 6ecb2f570..009f7fb54 100644 --- a/spec/coverage_helper.rb +++ b/spec/coverage_helper.rb @@ -5,20 +5,19 @@ module CoverageHelper ## # Skip list used to avoid loading certain patterns within - # the logstash directories, this patterns are excluded becuause + # the logstash directories, this patterns are excluded because # of potential problems or because they are going to be loaded # in another way. ## SKIP_LIST = Regexp.union([ /^lib\/bootstrap\/rspec.rb$/, - /^lib\/logstash\/util\/prctl.rb$/ + /^logstash-core\/lib\/logstash\/util\/prctl.rb$/ ]) def self.eager_load - Dir.glob("lib/**/*.rb") do |file| + Dir.glob("{logstash-core{/,-event/},}lib/**/*.rb") do |file| next if file =~ SKIP_LIST require file end end - end