diff --git a/lib/capybara/rails.rb b/lib/capybara/rails.rb index 5e47a39c..19d72c4f 100644 --- a/lib/capybara/rails.rb +++ b/lib/capybara/rails.rb @@ -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