1
0
Fork 0
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:
Jonas Nicklas 2010-07-03 21:26:11 +02:00
parent c98a6443f4
commit 51bd2fa42b

View file

@ -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