Sha256: 47fcdd9436189aa8a57329ea258f2351b938c2fdd0bde1e5b18eed918263d954
Contents?: true
Size: 768 Bytes
Versions: 1
Compression:
Stored size: 768 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require "mongoid" require 'mongoid_tree' require 'rspec' require 'rspec/autorun' require "factory_girl" Mongoid.configure do |config| name = "mongoid_tree_test" host = "localhost" config.master = Mongo::Connection.new.db(name) # config.slaves = [ # Mongo::Connection.new(host, 27018, :slave_ok => true).db(name) # ] end # I have never got the hang of including files, probably because the Syntax is so horrible. # This is the easiest I could come up with. Dir[File.dirname(__FILE__) + '/models/*.rb'].each {|file| require file } Dir[File.dirname(__FILE__) + "/factories/*.rb"].each {|file| require file } RSpec.configure do |config| end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongoid_tree-0.1.0 | spec/spec_helper.rb |