/usr/lib/ruby/vendor_ruby/capybara/spec/session/evaluate_script_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 | # frozen_string_literal: true
Capybara::SpecHelper.spec "#evaluate_script", requires: [:js] do
it "should evaluate the given script and return whatever it produces" do
@session.visit('/with_js')
expect(@session.evaluate_script("1+3")).to eq(4)
end
end
|