1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/lib/capybara/rails.rb

17 lines
387 B
Ruby
Raw Normal View History

2016-03-07 19:52:19 -05:00
# frozen_string_literal: true
2018-01-08 15:23:54 -05:00
2009-11-16 16:02:16 -05:00
require 'capybara/dsl'
Capybara.app = Rack::Builder.new do
map "/" do
run Rails.application
2009-11-16 16:02:16 -05:00
end
2010-01-01 11:48:39 -05:00
end.to_app
2009-11-16 16:02:16 -05:00
Capybara.save_path = Rails.root.join('tmp/capybara')
2010-02-21 19:59:17 -05:00
# Override default rack_test driver to respect data-method attributes.
Capybara.register_driver :rack_test do |app|
2016-10-04 14:10:29 -04:00
Capybara::RackTest::Driver.new(app, respect_data_method: true)
end