Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 1f1d6c0e0f
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (25 sloc) 0.706 kb
require 'rspec'
require 'mongoid'
require 'active_admin/mongoid'
# Requires supporting files with custom matchers and macros, etc,
# in ./support/ and its subdirectories.
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
puts "version: #{Mongoid::VERSION}"
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!
# for Mongoid 2.x
# Mongoid.database.collections.each do |collection|
# unless collection.name =~ /^system\./
# collection.remove
# end
# end
end
end
Jump to Line
Something went wrong with that request. Please try again.