This file is indexed.

/usr/lib/ruby/vendor_ruby/capybara/spec/session/element/match_css_spec.rb is in ruby-capybara 2.10.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
15
16
17
Capybara::SpecHelper.spec '#match_css?' do
  before do
    @session.visit('/with_html')
    @element = @session.find(:css, 'span', text: '42')
  end

  it "should be true if the given selector matches the element" do
    expect(@element).to match_css("span")
    expect(@element).to match_css("span.number")
  end

  it "should be false if the given selector does not match" do
    expect(@element).not_to match_css("div")
    expect(@element).not_to match_css("p a#doesnotexist")
    expect(@element).not_to match_css("p.nosuchclass")
  end
end