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
2018-01-08 14:39:56 -08:00

16 lines
387 B
Ruby

# frozen_string_literal: true
require 'capybara/dsl'
Capybara.app = Rack::Builder.new do
map "/" do
run Rails.application
end
end.to_app
Capybara.save_path = Rails.root.join('tmp/capybara')
# Override default rack_test driver to respect data-method attributes.
Capybara.register_driver :rack_test do |app|
Capybara::RackTest::Driver.new(app, respect_data_method: true)
end