Sha256: ebb0e4117838f3a4b66cddd0702db66c8ea3af5979a4d52d015ae1d7eddc4349

Contents?: true

Size: 304 Bytes

Versions: 7

Compression:

Stored size: 304 Bytes

Contents

require 'database_cleaner'

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

  config.after :suite do
    CreateAllTables.down
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mighty_grid-0.6.0 spec/support/database_cleaner.rb
mighty_grid-0.5.0 spec/support/database_cleaner.rb
mighty_grid-0.4.0 spec/support/database_cleaner.rb
mighty_grid-0.3.3 spec/support/database_cleaner.rb
mighty_grid-0.3.2 spec/support/database_cleaner.rb
mighty_grid-0.3.1 spec/support/database_cleaner.rb
mighty_grid-0.3.0 spec/support/database_cleaner.rb