Sha256: de60a1b7461275d09ac69aac2c5390c62dd395da735182abfd34de3e72ab2445
Contents?: true
Size: 351 Bytes
Versions: 8
Compression:
Stored size: 351 Bytes
Contents
require 'capybara' require 'capybara/dsl' Capybara.app = Rack::Builder.new do map "/" do if Rails.version.to_f >= 3.0 ActionDispatch::Static run Rails.application else # Rails 2 use Rails::Rack::Static run ActionController::Dispatcher.new end end end.to_app Capybara.asset_root = Rails.root.join('public')
Version data entries
8 entries across 8 versions & 5 rubygems