Sha256: 704c09b95fdbd2b9705360b77cac541417072c667eae357f05f7510951bef58c

Contents?: true

Size: 357 Bytes

Versions: 12

Compression:

Stored size: 357 Bytes

Contents

ActiveRecord::Migration.verbose = false
ActiveRecord::Base.establish_connection adapter: 'sqlite3', database: ':memory:'

module DatabaseCleaner
  def self.included config
    config.after :each, :active_record do
      ActiveRecord::Base.connection.tables.each do |table|
        ActiveRecord::Base.connection.drop_table(table)
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
danconia-0.4.0 spec/support/database.rb
danconia-0.3.1 spec/support/database.rb
danconia-0.3.0 spec/support/database.rb
danconia-0.2.9 spec/support/database.rb
danconia-0.2.8 spec/support/database.rb
danconia-0.2.7 spec/support/database.rb
danconia-0.2.6 spec/support/database.rb
danconia-0.2.5 spec/support/database.rb
danconia-0.2.4 spec/support/database.rb
danconia-0.2.3 spec/support/database.rb
danconia-0.2.2 spec/support/database.rb
danconia-0.2.1 spec/support/database.rb