Sha256: dc2cf8cbd715422fd0194b1eeac218586640b4788ff5f400ad6ba613497a91f3

Contents?: true

Size: 558 Bytes

Versions: 2

Compression:

Stored size: 558 Bytes

Contents

require "rubygems"

require "database_cleaner"
require "mongoid"
require "rspec"

Mongoid.configure do |config|
  name = "mongoid_follow_test"
  config.master = Mongo::Connection.new.db(name)
end

require File.expand_path("../../lib/mongoid_follow", __FILE__)
require File.expand_path("../models/user", __FILE__)
require File.expand_path("../models/other_user", __FILE__)
require File.expand_path("../models/group", __FILE__)

RSpec.configure do |c|
  c.before(:all) { DatabaseCleaner.strategy = :truncation }
  c.before(:each) { DatabaseCleaner.clean }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongoid_follow-0.2.3 spec/spec_helper.rb
mongoid_follow-0.2.2 spec/spec_helper.rb