Sha256: a11352dd4c1525b9f91ba918cc74c9f3a9e16eefe3a87072a83ec2a801ea2c24

Contents?: true

Size: 624 Bytes

Versions: 6

Compression:

Stored size: 624 Bytes

Contents

require 'rubygems'
require 'bundler'
Bundler.setup


$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

MODELS = File.join(File.dirname(__FILE__), "models")
$LOAD_PATH.unshift(MODELS)


require 'mongoid'
require 'voteable_mongoid'
require 'rspec'
require 'rspec/autorun'


Mongoid.configure do |config|
  name = "voteable_mongoid_test"
  host = "localhost"
  config.master = Mongo::Connection.new.db(name)
  config.embedded_object_id = false
end


Dir[ File.join(MODELS, "*.rb") ].sort.each { |file| require File.basename(file) }


RSpec.configure do |config|
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
voteable_mongoid-0.7.0 spec/spec_helper.rb
voteable_mongoid-0.6.4 spec/spec_helper.rb
voteable_mongoid-0.6.3 spec/spec_helper.rb
voteable_mongoid-0.6.2 spec/spec_helper.rb
voteable_mongoid-0.6.1 spec/spec_helper.rb
voteable_mongoid-0.6.0 spec/spec_helper.rb