mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
rails3
This commit is contained in:
parent
08e5ae0c77
commit
e6ed2cd8b0
1 changed files with 3 additions and 2 deletions
|
@ -3,9 +3,10 @@ require 'capybara/dsl'
|
|||
|
||||
Capybara.app = Rack::Builder.new do
|
||||
map "/" do
|
||||
use Rails::Rack::Static
|
||||
run ActionController::Dispatcher.new
|
||||
ActionDispatch::Static
|
||||
run Rails.application
|
||||
end
|
||||
end.to_app
|
||||
|
||||
Capybara.asset_root = Rails.root.join('public')
|
||||
|
||||
|
|
Loading…
Reference in a new issue