Sha256: fffbcfca8bb9d973873953518044d4f55d71231d00077720d511ba3b28074ac6

Contents?: true

Size: 254 Bytes

Versions: 23

Compression:

Stored size: 254 Bytes

Contents

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

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

Version data entries

23 entries across 23 versions & 4 rubygems

Version Path
flamerb-0.3.0 templates/spec/support/database_cleaner.rb
flamerb-0.2.3 templates/spec/support/database_cleaner.rb
flamerb-0.2.0 templates/spec/support/database_cleaner.rb
flamerb-0.1.3 templates/spec/support/database_cleaner.rb
auto_increment-1.5.2 spec/support/database_cleaner.rb
csv_import_magic-0.0.11 spec/support/database_cleaner.rb
csv_import_magic-0.0.10 spec/support/database_cleaner.rb
csv_import_magic-0.0.8 spec/support/database_cleaner.rb
auto_increment-1.5.1 spec/support/database_cleaner.rb
csv_import_magic-0.0.7 spec/support/database_cleaner.rb
csv_import_magic-0.0.6 spec/support/database_cleaner.rb
csv_import_magic-0.0.5 spec/support/database_cleaner.rb
csv_import_magic-0.0.4 spec/support/database_cleaner.rb
auto_increment-1.5.0 spec/support/database_cleaner.rb
csv_import_magic-0.0.3 spec/support/database_cleaner.rb
auto_increment-1.4.1 spec/support/database_cleaner.rb
csv_import_magic-0.0.2 spec/support/database_cleaner.rb
csv_import_magic-0.0.1 spec/support/database_cleaner.rb
auto_increment-1.4.0 spec/support/database_cleaner.rb
auto_increment-1.3.0 spec/support/database_cleaner.rb