Sha256: 261ab1906392bd88c785296e2fc669d99dfc98dc27c609f4b4b31d2495cd56d3
Contents?: true
Size: 726 Bytes
Versions: 11
Compression:
Stored size: 726 Bytes
Contents
# encoding: utf-8 $: << File.join(File.dirname(__FILE__), "/../../lib" ) ENV['RAILS_ENV'] = 'test' # Load the Rails environment and testing framework require "#{File.dirname(__FILE__)}/../app_root/config/environment" require 'spec/rails' DatabaseCleaner.strategy = :truncation # Requires supporting files with custom matchers and macros, etc in ./support/ and its subdirectories. Dir[File.expand_path(File.join(File.dirname(__FILE__),'support','**','*.rb'))].each {|f| require f} # Run the migrations Dusen::Util.migrate_test_database Spec::Runner.configure do |config| config.use_transactional_fixtures = false config.use_instantiated_fixtures = false config.before(:each) do DatabaseCleaner.clean end end
Version data entries
11 entries across 11 versions & 1 rubygems