Sha256: b13c28720ce5e432e895cb67eca39ad4e1dc476422884e63da62c4f87cbc41bd
Contents?: true
Size: 604 Bytes
Versions: 11
Compression:
Stored size: 604 Bytes
Contents
$LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib")) require "rubygems" require "active_support/core_ext" require "rspec" require "rr" require "mongoid" require "webmock/rspec" require "vidibus-user" Mongoid.configure do |config| name = "vidibus-user_test" host = "localhost" config.master = Mongo::Connection.new.db(name) config.logger = nil end RSpec.configure do |config| config.include WebMock config.mock_with :rr config.before(:each) do Mongoid.master.collections.select {|c| c.name !~ /system/}.each(&:drop) end end
Version data entries
11 entries across 11 versions & 1 rubygems