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