mirror of
https://github.com/teamcapybara/capybara.git
synced 2022-11-09 12:08:07 -05:00
ActionDispatch::Static requires the path as the second argument
This commit is contained in:
parent
c98a6443f4
commit
51bd2fa42b
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ require 'capybara/dsl'
|
|||
Capybara.app = Rack::Builder.new do
|
||||
map "/" do
|
||||
if Rails.version.to_f >= 3.0
|
||||
use ActionDispatch::Static
|
||||
use ActionDispatch::Static, Rails.public_path
|
||||
run Rails.application
|
||||
else # Rails 2
|
||||
use Rails::Rack::Static
|
||||
|
|
Loading…
Reference in a new issue