Sha256: fa12264a9d00a18175f5247cfd7c85bf1af94af01fde4ed7b2894cca6a10005d

Contents?: true

Size: 393 Bytes

Versions: 11

Compression:

Stored size: 393 Bytes

Contents

RSpec.configure do |config|

  config.before(:suite) do
    DatabaseCleaner.clean_with(:truncation)
  end

  config.before(:each) do
    DatabaseCleaner.strategy = :transaction
  end

  config.before(:each, :js => true) do
    DatabaseCleaner.strategy = :truncation
  end

  config.before(:each) do
    DatabaseCleaner.start
  end

  config.after(:each) do
    DatabaseCleaner.clean
  end

end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
nodes-0.2.8 spec/support/database_cleaner.rb
nodes-0.2.7 spec/support/database_cleaner.rb
nodes-0.2.6 spec/support/database_cleaner.rb
nodes-0.2.5 spec/support/database_cleaner.rb
nodes-0.2.4 spec/support/database_cleaner.rb
nodes-0.2.3 spec/support/database_cleaner.rb
mail_manager-0.1.4 spec/test_app/spec/support/database_cleaner.rb
mail_manager-0.1.2 spec/test_app/spec/support/database_cleaner.rb
mail_manager-0.1.1 spec/test_app/spec/support/database_cleaner.rb
mail_manager-0.1.0 spec/test_app/spec/support/database_cleaner.rb
mail_manager-0.0.1 spec/test_app/spec/support/database_cleaner.rb