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

Version Path
david-capybara-0.3.8 lib/capybara/rails.rb
katzil-capybara-0.3.8 lib/capybara/rails.rb
capybara-0.3.8 lib/capybara/rails.rb
pr0d1r2-capybara-0.3.7 lib/capybara/rails.rb
capybara-0.3.7 lib/capybara/rails.rb
capybara-0.3.6 lib/capybara/rails.rb
h13ronim-capybara-0.3.0.1 lib/capybara/rails.rb
capybara-0.3.5 lib/capybara/rails.rb