Sha256: fd38d171ec6cf843123fda734fddf9571009523de9da7963253e7696926a44b2
Contents?: true
Size: 623 Bytes
Versions: 9
Compression:
Stored size: 623 Bytes
Contents
require 'spec_helper' require 'mongoid' # puts "version: #{Mongoid::VERSION}" require 'timespan/mongoid/mongoid_setup' Mongoid.configure do |config| Mongoid::VersionSetup.configure config end if RUBY_VERSION >= '1.9.2' YAML::ENGINE.yamler = 'syck' end RSpec.configure do |config| # config.mock_with(:mocha) config.before(:each) do Mongoid.purge! # Mongoid.database.collections.each do |collection| # unless collection.name =~ /^system\./ # collection.remove # end # end end end require 'timespan/mongoid' require "timespan/mongoid/models/account_#{Mongoid::MAJOR_VERSION}x"
Version data entries
9 entries across 9 versions & 1 rubygems