Sha256: a078859eb5a12402dfc8e44bb9eb2a2b8d5a7910fc8ff9790c0a5ed4155dcd34

Contents?: true

Size: 283 Bytes

Versions: 50

Compression:

Stored size: 283 Bytes

Contents

# frozen_string_literal: true

RSpec.configure do |config|
  config.before(:suite) do
    DatabaseCleaner.strategy = :truncation
    DatabaseCleaner.clean_with :truncation
  end

  config.around(:each) do |example|
    DatabaseCleaner.cleaning do
      example.run
    end
  end
end

Version data entries

50 entries across 50 versions & 2 rubygems

Version Path
decidim-dev-0.8.4 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-dev-0.8.3 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-dev-0.8.2 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-dev-0.8.1 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-dev-0.8.0 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-dev-0.7.4 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-dev-0.7.3 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-dev-0.7.2 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-dev-0.7.1 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-dev-0.7.0 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-dev-0.6.8 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-0.6.8 decidim-dev/lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-dev-0.6.7 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-0.6.7 decidim-dev/lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-dev-0.6.6 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-0.6.6 decidim-dev/lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-dev-0.6.5 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-0.6.5 decidim-dev/lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-dev-0.6.4 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-0.6.4 decidim-dev/lib/decidim/dev/test/rspec_support/database_cleaner.rb