Sha256: f42f00685c176f0270b312c819ead171c0ef620dc30ba1273983afb343af813a

Contents?: true

Size: 533 Bytes

Versions: 6

Compression:

Stored size: 533 Bytes

Contents

ENV['RAILS_ENV'] = 'test'

require 'database_cleaner'
require 'combustion'

require 'simplecov'
SimpleCov.start do
  add_filter 'spec'
end

Combustion.path = 'spec/support/rails'
Combustion.initialize! :active_record

RSpec.configure do |config|
  config.order = 'random'

  # Configure the DatabaseCleaner
  config.before(:suite) do
    DatabaseCleaner.strategy = :transaction
    DatabaseCleaner.clean_with(:truncation)
  end

  config.around(:each) do |example|
    DatabaseCleaner.cleaning do
      example.run
    end
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
data_tables-responder-0.4.4rc1 spec/spec_helper.rb
data_tables-responder-0.4.3 spec/spec_helper.rb
active_record-mti-0.3.2 spec/spec_helper.rb
active_record-mti-0.3.0.pre.rc4 spec/spec_helper.rb
data_tables-responder-0.5.0rc1 spec/spec_helper.rb
deleted_at-0.4.0rc1 spec/spec_helper.rb