Sha256: 832963b443909e919a1a4a8ba49b28e6a1de2718e9159850fa085fb6f220e86b

Contents?: true

Size: 560 Bytes

Versions: 18

Compression:

Stored size: 560 Bytes

Contents

require 'capybara'
require 'capybara/dsl'

Capybara.app = Rack::Builder.new do
  map "/" do
    if Gem::Version.new(Rails.version) >= Gem::Version.new("3.0")
      run Rails.application
    else # Rails 2
      use Rails::Rack::Static
      run ActionController::Dispatcher.new
    end
  end
end.to_app

Capybara.save_and_open_page_path = Rails.root.join('tmp/capybara')

# Override default rack_test driver to respect data-method attributes.
Capybara.register_driver :rack_test do |app|
  Capybara::RackTest::Driver.new(app, :respect_data_method => true)
end

Version data entries

18 entries across 18 versions & 5 rubygems

Version Path
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/capybara-2.4.4/lib/capybara/rails.rb
angular-rails4-templates-0.4.1 vendor/ruby/2.1.0/gems/capybara-2.4.4/lib/capybara/rails.rb
angular-rails4-templates-0.4.0 vendor/ruby/2.1.0/gems/capybara-2.4.4/lib/capybara/rails.rb
angular-rails4-templates-0.3.0 vendor/ruby/2.1.0/gems/capybara-2.4.4/lib/capybara/rails.rb
capybara-2.5.0 lib/capybara/rails.rb
solidus_backend-1.0.0.pre3 vendor/bundle/gems/capybara-2.4.4/lib/capybara/rails.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/capybara-2.4.4/lib/capybara/rails.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/capybara-2.4.4/lib/capybara/rails.rb
capybara-2.4.4 lib/capybara/rails.rb
capybara-2.4.1 lib/capybara/rails.rb
capybara-2.4.0 lib/capybara/rails.rb
capybara-2.3.0 lib/capybara/rails.rb
capybara-2.2.1 lib/capybara/rails.rb
capybara-2.2.0 lib/capybara/rails.rb
capybara-2.2.0.rc1 lib/capybara/rails.rb
swipe-rails-0.0.5 vendor/bundle/gems/capybara-2.1.0/lib/capybara/rails.rb
capybara-2.1.0 lib/capybara/rails.rb
capybara-2.1.0.rc1 lib/capybara/rails.rb