Sha256: 0d189c52b57d7bf499a941e0c856fd9f0b3db36ca6407970822ac450e5ec8a00

Contents?: true

Size: 282 Bytes

Versions: 14

Compression:

Stored size: 282 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

14 entries across 14 versions & 2 rubygems

Version Path
decidim-dev-0.1.0 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-0.1.0 decidim-dev/lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-dev-0.0.8.1 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-0.0.8.1 decidim-dev/lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-dev-0.0.8 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-dev-0.0.7 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-0.0.7 decidim-dev/lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-dev-0.0.6 lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-0.0.6 decidim-dev/lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-0.0.5 decidim-dev/lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-0.0.4 decidim-dev/lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-0.0.3 decidim-dev/lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-0.0.2 decidim-dev/lib/decidim/dev/test/rspec_support/database_cleaner.rb
decidim-0.0.1 decidim-dev/lib/decidim/test/rspec_support/database_cleaner.rb