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

Version Path
timespan-0.5.0 spec/timespan/mongoid/spec_helper.rb
timespan-0.4.9 spec/timespan/mongoid/spec_helper.rb
timespan-0.4.6 spec/timespan/mongoid/spec_helper.rb
timespan-0.4.5 spec/timespan/mongoid/spec_helper.rb
timespan-0.4.4 spec/timespan/mongoid/spec_helper.rb
timespan-0.4.3 spec/timespan/mongoid/spec_helper.rb
timespan-0.4.2 spec/timespan/mongoid/spec_helper.rb
timespan-0.4.1 spec/timespan/mongoid/spec_helper.rb
timespan-0.4.0 spec/timespan/mongoid/spec_helper.rb