Sha256: 2e3be95c20a4248c3780f23030c6d979907a8e1b070878ab949b971376f2c5de

Contents?: true

Size: 205 Bytes

Versions: 11

Compression:

Stored size: 205 Bytes

Contents

DatabaseCleaner.strategy = :transaction
DatabaseCleaner.clean_with :truncation

class MiniTest::Spec
  before :each do
    DatabaseCleaner.start
  end

  after :each do
    DatabaseCleaner.clean
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
thincloud-test-rails-1.0.0 lib/generators/thincloud/templates/support/database_cleaner.rb
thincloud-test-rails-1.0.0.rc1 lib/generators/thincloud/templates/support/database_cleaner.rb
thincloud-test-rails-1.0.0.pre lib/generators/thincloud/templates/support/database_cleaner.rb
thincloud-test-0.8.0 lib/generators/thincloud/test/templates/database_cleaner.rb
thincloud-test-0.7.0 lib/generators/thincloud/test/templates/database_cleaner.rb
thincloud-test-0.6.0 lib/generators/thincloud/test/templates/database_cleaner.rb
thincloud-test-0.5.0 lib/generators/thincloud/test/templates/database_cleaner.rb
thincloud-test-0.4.0 lib/generators/thincloud/test/templates/database_cleaner.rb
thincloud-test-0.3.2 lib/generators/thincloud/test/templates/database_cleaner.rb
thincloud-test-0.3.1 lib/generators/thincloud/test/templates/database_cleaner.rb
thincloud-test-0.3.0 lib/generators/thincloud/test/templates/database_cleaner.rb