mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
15 lines
331 B
Ruby
15 lines
331 B
Ruby
require 'capybara'
|
|
require 'capybara/dsl'
|
|
|
|
require 'database_cleaner'
|
|
require 'database_cleaner/cucumber'
|
|
DatabaseCleaner.strategy = :truncation
|
|
|
|
Capybara.app = Rack::Builder.new do
|
|
map "/" do
|
|
use Rails::Rack::Static
|
|
run ActionController::Dispatcher.new
|
|
end
|
|
end.to_app
|
|
|
|
Capybara.asset_root = Rails.root.join('public')
|