Sha256: d23e6a814d56d2e452a36c793a88c16d2e397021dc050e706ecd2847a2a45ae5
Contents?: true
Size: 576 Bytes
Versions: 1
Compression:
Stored size: 576 Bytes
Contents
RSpec.configure do |config| config.use_transactional_fixtures = false config.before(:suite) do DatabaseCleaner.clean_with(:truncation) end config.before do DatabaseCleaner.strategy = :transaction end config.before(:each, type: :feature) do driver_shares_db_connection_with_specs = Capybara.current_driver == :rack_test unless driver_shares_db_connection_with_specs DatabaseCleaner.strategy = :truncation end end config.before do DatabaseCleaner.start end config.append_after do DatabaseCleaner.clean end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
welaika-suspenders-2.28.0 | templates/database_cleaner_rspec.rb |