Sha256: 760fb5b402f00d1f24711906f68b049886699863faee11aae55ae70a5429127b

Contents?: true

Size: 302 Bytes

Versions: 26

Compression:

Stored size: 302 Bytes

Contents

DatabaseCleaner[:active_record].strategy = :transaction if defined? ActiveRecord

RSpec.configure do |config|
  config.before :suite do
    DatabaseCleaner.clean_with :truncation
  end
  config.before :each do
    DatabaseCleaner.start
  end
  config.after :each do
    DatabaseCleaner.clean
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
iam-0.3.3 spec/support/database_cleaner.rb
iam-0.3.2 spec/support/database_cleaner.rb
iam-0.3.1 spec/support/database_cleaner.rb
iam-0.3.0 spec/support/database_cleaner.rb
iam-0.2.2 spec/support/database_cleaner.rb
iam-0.2.1 spec/support/database_cleaner.rb
iam-0.1.12 spec/support/database_cleaner.rb
iam-0.1.11 spec/support/database_cleaner.rb
iam-0.1.10 spec/support/database_cleaner.rb
iam-0.1.9 spec/support/database_cleaner.rb
iam-0.1.8 spec/support/database_cleaner.rb
iam-0.1.7 spec/support/database_cleaner.rb
iam-0.1.6 spec/support/database_cleaner.rb
iam-0.1.5 spec/support/database_cleaner.rb
iam-0.1.4 spec/support/database_cleaner.rb
iam-0.1.3 spec/support/database_cleaner.rb
iam-0.1.2 spec/support/database_cleaner.rb
iam-0.1.1 spec/support/database_cleaner.rb
iam-0.1.0 spec/support/database_cleaner.rb
iam-0.0.9 spec/support/database_cleaner.rb