Sha256: d430c0dda7060fda8ca5fc4260ff7b35c203114dd1a87a4a0e1774582317375e
Contents?: true
Size: 508 Bytes
Versions: 10
Compression:
Stored size: 508 Bytes
Contents
ENV['RAILS_ENV'] ||= 'test' require File.expand_path('../../spec/dummy/config/environment', __FILE__) require 'rspec/rails' require 'timecop' require 'database_cleaner' Dir[Rails.root.join('spec/support/**/*.rb')].each {|f| require f} RSpec.configure do |config| config.order = 'random' config.before(:suite) do DatabaseCleaner.clean_with(:truncation) run_dummy_app_migrations end def run_dummy_app_migrations ActiveRecord::Migrator.migrate(Rails.root.join('db', 'migrate')) end end
Version data entries
10 entries across 10 versions & 1 rubygems