Sha256: eb251de3a9d52880f0d4e9f37fd2e4982a0d15810a60d36e165c46310ab61fca
Contents?: true
Size: 702 Bytes
Versions: 10
Compression:
Stored size: 702 Bytes
Contents
require 'rubygems' ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../dummyapp/config/environment', __FILE__) require 'rspec/rails' require 'database_cleaner' Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } RSpec.configure do |config| config.color_enabled = true config.formatter = 'documentation' config.use_transactional_fixtures = true config.order = "random" config.before(:suite) do DatabaseCleaner.strategy = :truncation end config.before(:each) do DatabaseCleaner.start DatabaseCleaner.clean end config.after(:each) do DatabaseCleaner.clean end end def reset_configuration Ratchetio.reconfigure do |config| end end
Version data entries
10 entries across 10 versions & 1 rubygems