Sha256: 948ecf07f79230ca7ac9c1566b579762211f41ab871c85dac7f0b6713eae9a20

Contents?: true

Size: 389 Bytes

Versions: 35

Compression:

Stored size: 389 Bytes

Contents

require 'capybara'
require 'capybara/dsl'

Capybara.app = Rack::Builder.new do
  map "/" do
    if Rails.version.to_f >= 3.0
      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')
Capybara.save_and_open_page_path = Rails.root.join('tmp/capybara')

Version data entries

35 entries across 35 versions & 7 rubygems

Version Path
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.4/lib/capybara/rails.rb
capybara-1.1.4 lib/capybara/rails.rb
capybara-2.0.0 lib/capybara/rails.rb
capybara-2.0.0.beta4 lib/capybara/rails.rb
capybara-1.1.3 lib/capybara/rails.rb
capybara-2.0.0.beta2 lib/capybara/rails.rb
nimboids-capybara-1.1.2 lib/capybara/rails.rb
sunrise-cms-0.3.3 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/rails.rb
sunrise-cms-0.3.2 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/rails.rb
sunrise-cms-0.3.1 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/rails.rb
sunrise-cms-0.3.0 vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/rails.rb
sunrise-cms-0.3.0.rc vendor/bundle/ruby/1.9.1/gems/capybara-1.1.2/lib/capybara/rails.rb
frameworks-capybara-0.2.0.rc6 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/rails.rb
frameworks-capybara-0.2.0.rc5 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/rails.rb
frameworks-capybara-0.2.0.rc4 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/rails.rb
frameworks-capybara-0.2.0.rc3 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/rails.rb
frameworks-capybara-0.2.0.rc2 vendor/bundle/ruby/1.8/gems/capybara-1.1.2/lib/capybara/rails.rb
bbc-capybara-1.1.2 lib/capybara/rails.rb
capybara-1.1.2 lib/capybara/rails.rb
capybara-1.1.1 lib/capybara/rails.rb