/usr/lib/ruby/vendor_ruby/capybara/spec/session/go_back_spec.rb is in ruby-capybara 2.2.1-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 | Capybara::SpecHelper.spec '#go_back', :requires => [:js] do
it "should fetch a response from the driver from the previous page" do
@session.visit('/')
@session.should have_content('Hello world!')
@session.visit('/foo')
@session.should have_content('Another World')
@session.go_back
@session.should have_content('Hello world!')
end
end
|