Sha256: 29294f8c6ed8a611c8d9dd312d97b4f34198a302f7bb9798918232b234ebec46

Contents?: true

Size: 503 Bytes

Versions: 6

Compression:

Stored size: 503 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.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

6 entries across 6 versions & 2 rubygems

Version Path
automigration-1.1.0 spec/spec_helper.rb
automigration-1.0.3 spec/spec_helper.rb
automigration-1.0.2 spec/spec_helper.rb
booter-1.0.0.rc1 spec/spec_helper.rb
automigration-1.0.1 spec/spec_helper.rb
automigration-1.0.0 spec/spec_helper.rb