Sha256: adcb5002fb33f8e403dda22f4d615cf89e3cedf709ddc2a077fa98124fe35e04
Contents?: true
Size: 824 Bytes
Versions: 3
Compression:
Stored size: 824 Bytes
Contents
$: << File.join(File.dirname(__FILE__), "/../lib" ) # Set the default environment to sqlite3's in_memory database ENV['RAILS_ENV'] ||= 'in_memory' # Load the Rails environment and testing framework require "#{File.dirname(__FILE__)}/app_root/config/environment" require 'spec/rails' # Undo changes to RAILS_ENV silence_warnings {RAILS_ENV = ENV['RAILS_ENV']} # 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 print "\033[30m" # dark gray text ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate") print "\033[0m" Spec::Runner.configure do |config| config.use_transactional_fixtures = true config.use_instantiated_fixtures = false end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dusen-0.2.1 | spec/rails-2.3/spec_helper.rb |
dusen-0.2.0 | spec/rails-2.3/spec_helper.rb |
dusen-0.1.0 | spec/rails-2.3/spec_helper.rb |