Sha256: a4542bd109b8447cb0b982ccfbbbcc148e552e0f22afd887f9fd4f365cda6450

Contents?: true

Size: 575 Bytes

Versions: 1

Compression:

Stored size: 575 Bytes

Contents

require 'bundler/setup'
require 'simplecov'
require 'pry'
SimpleCov.configure do
  add_filter '/test/'
end
SimpleCov.start if ENV['COVERAGE']

require 'minitest/autorun'
require 'mongoid'

require File.expand_path("../../lib/mongoid-embedded_copy", __FILE__)

Mongoid.load!("#{File.dirname(__FILE__)}/mongoid.yml", "test")

Dir["#{File.dirname(__FILE__)}/models/*.rb"].each { |f| require f }

ActiveSupport::TestCase.test_order = :random

class BaseTest < ActiveSupport::TestCase
  def teardown
    Mongoid::Sessions.default.use('mongoid_embedded_copy_test').drop
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid-embedded_copy-1.0.0 test/test_helper.rb