Sha256: fd51abead8a0fc1cdb47902ace9509af1f0effbb28eb050a3ebe093a4a01ec63
Contents?: true
Size: 428 Bytes
Versions: 18
Compression:
Stored size: 428 Bytes
Contents
# Define a bare test case to use with Capybara class ActiveSupport::IntegrationCase < ActiveSupport::TestCase include Capybara::DSL include Rails.application.routes.url_helpers teardown do DatabaseCleaner.clean # Truncate the database Capybara.reset_sessions! # Forget the (simulated) browser state Capybara.use_default_driver # Revert Capybara.current_driver to Capybara.default_driver end end
Version data entries
18 entries across 18 versions & 1 rubygems