Sha256: e89411557235f28fffe7900c26fcad723b329280728455f3e0bd8c9f11229424
Contents?: true
Size: 662 Bytes
Versions: 6
Compression:
Stored size: 662 Bytes
Contents
require 'unit_spec_helper' require 'active_record' require 'shoulda-matchers' db_yml_file = File.expand_path('config/database.yml') db_config = YAML.load_file(db_yml_file) ActiveRecord::Base.establish_connection(db_config['test']) # add activerecord plugins here # require 'friendly_id' autoload_paths = ActiveSupport::Dependencies.autoload_paths %w(app/models app/validators).each do |path| autoload_paths.push(path) unless autoload_paths.include?(path) end # find definitions only if factory girls has not been already required if require 'factory_girl' require File.join(RAILS_ROOT, "spec/support/factory_girl.rb") FactoryGirl.find_definitions end
Version data entries
6 entries across 6 versions & 1 rubygems