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