Sha256: b88d5d7e6b1620abd2166a1829d7c2a502b812f8d82f747ca6c4e51ec831122f

Contents?: true

Size: 548 Bytes

Versions: 4

Compression:

Stored size: 548 Bytes

Contents

# Configure Rails Environment
ENV["RAILS_ENV"] = "test"

require File.expand_path("../dummy/config/environment.rb",  __FILE__)
require 'rspec/rails'
require 'rspec/autorun'
require 'database_cleaner'
require 'factory_girl_rails'

RSpec.configure do |config|
  config.use_transactional_fixtures = false

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

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

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

  config.include FactoryGirl::Syntax::Methods
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
automigration-1.1.4 spec/spec_helper.rb
automigration-1.1.3 spec/spec_helper.rb
automigration-1.1.2 spec/spec_helper.rb
automigration-1.1.1 spec/spec_helper.rb