This file is indexed.

/usr/lib/ruby/vendor_ruby/serverspec/matcher/have_entry.rb is in ruby-serverspec 2.37.2-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
RSpec::Matchers.define :have_entry do |entry|
  match do |subject|
    if subject.class.name == 'Serverspec::Type::Cron'
      subject.has_entry?(@user, entry)
    elsif subject.respond_to?(:has_entry?)
      subject.has_entry?(entry)
    end
  end

  # For cron type
  chain :with_user do |user|
    @user = user
  end
end