Sha256: e981757236c08f97ec424fc8b81b4e1ae599d556a3b3ffe5bde5135210ffc039
Contents?: true
Size: 770 Bytes
Versions: 9
Compression:
Stored size: 770 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' require 'edge_rider/development' 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 EdgeRider::Development.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
9 entries across 9 versions & 1 rubygems