Sha256: 3a4e81b0fb06f17fc1619eded61452fb4160bb51e78c9bc4c372688d0f9f78e1

Contents?: true

Size: 342 Bytes

Versions: 16

Compression:

Stored size: 342 Bytes

Contents

# frozen_string_literal: true

require 'database_cleaner'

RSpec.configure do |config|
  config.before :suite do
    DatabaseCleaner.strategy = :transaction

    DatabaseCleaner.clean_with :truncation
  end

  config.before { DatabaseCleaner.start }

  config.around do |spec|
    DatabaseCleaner.cleaning do
      spec.run
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
rating-0.11.0 spec/support/database_cleaner.rb
rating-0.10.0 spec/support/database_cleaner.rb
voting-0.5.0 spec/support/database_cleaner.rb
rating-0.9.0 spec/support/database_cleaner.rb
rating-0.8.0 spec/support/database_cleaner.rb
rating-0.7.0 spec/support/database_cleaner.rb
rating-0.6.0 spec/support/database_cleaner.rb
rating-0.5.0 spec/support/database_cleaner.rb
voting-0.4.0 spec/support/database_cleaner.rb
voting-0.3.0 spec/support/database_cleaner.rb
rating-0.4.0 spec/support/database_cleaner.rb
rating-0.3.0 spec/support/database_cleaner.rb
voting-0.2.0 spec/support/database_cleaner.rb
voting-0.1.0 spec/support/database_cleaner.rb
rating-0.2.0 spec/support/database_cleaner.rb
rating-0.1.0 spec/support/database_cleaner.rb