Sha256: 002fb0b63af40565e5645be99f2dc67a444da0883eb4e2f0a0657f63072acc0d

Contents?: true

Size: 319 Bytes

Versions: 3

Compression:

Stored size: 319 Bytes

Contents

require "capybara/rails"

module ActionDispatch
  class IntegrationTest
    include Capybara::DSL

    setup do
      Capybara.reset_sessions!
      Capybara.use_default_driver
    end

    def self.use_javascript!
      setup do
        Capybara.current_driver = Capybara.javascript_driver
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
minitest-utils-0.3.1 lib/minitest/utils/rails/capybara.rb
minitest-utils-0.3.0 lib/minitest/utils/rails/capybara.rb
minitest-utils-0.2.7 lib/minitest/utils/rails/capybara.rb