Sha256: a3657fc3a4fd84676d7429d8f68956c9b3f6b68b14c90f0cc5680a768e9648cb

Contents?: true

Size: 381 Bytes

Versions: 4

Compression:

Stored size: 381 Bytes

Contents

require 'pathname'
require 'mongoid'
root    = Pathname(File.expand_path('../../../test_app', __FILE__))
version = Mongoid::VERSION.to_i

current_config = root.join("config/mongoid.#{version}.yml").read
config_file    = root.join('config/mongoid.yml')
config_file.open('w') {|c| c << current_config }

Mongoid.load!(config_file, :test)
Mongo::Logger.logger.level = ::Logger::FATAL

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
activeadmin-mongoid-1.0.0 spec/support/mongoid.rb
activeadmin-mongoid-0.9.0 spec/support/mongoid.rb
activeadmin-mongoid-0.7.0 spec/support/mongoid.rb
activeadmin-mongoid-0.5.0 spec/support/mongoid.rb