Sha256: 0adc0607be75a9c816db5321e6dc53f86a28975d0e67c8a06aad5bb146e7bbe9
Contents?: true
Size: 483 Bytes
Versions: 9
Compression:
Stored size: 483 Bytes
Contents
require 'rails/all' require 'lol_dba' require 'rspec/rails' ENV["RAILS_ENV"] ||= 'test' ActiveRecord::Base.establish_connection( :adapter => "sqlite3", :database => ":memory:" ) module Rails def self.root "spec/fixtures/" end end Dir.glob("#{Rails.root}/app/models/*.rb").sort.each { |file| require_dependency file } ActiveRecord::Schema.verbose = false load 'fixtures/schema.rb' root_dir = File.dirname(__FILE__) #add current dir to the load path $:.unshift('.')
Version data entries
9 entries across 9 versions & 1 rubygems