Sha256: 89fe5f5665ed4ec23e6b1582182a3803ff0bf22129cceefda38b3fa620272fe1

Contents?: true

Size: 610 Bytes

Versions: 5

Compression:

Stored size: 610 Bytes

Contents

require 'data_sanity'
require 'support/helper'
require 'database_cleaner'

require 'support/sample_app/config/environment'

setup_sample_app

RSpec::configure do |config|
  config.color_enabled = true
  config.run_all_when_everything_filtered = true
  config.before(:suite) do
    setup_sample_app
    setup_data_inspector

    DatabaseCleaner.strategy = :transaction
    DatabaseCleaner.clean_with(:truncation)
  end

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
data_sanity-0.2.4 spec/spec_helper.rb
data_sanity-0.2.3 spec/spec_helper.rb
data_sanity-0.2.2 spec/spec_helper.rb
data_sanity-0.2.1 spec/spec_helper.rb
data_sanity-0.2.0 spec/spec_helper.rb