Sha256: 8ff9fcb01cd6179743169d2f86365b1f3f5716ffdf62da1b4341e9dfaf1c77b1

Contents?: true

Size: 612 Bytes

Versions: 5

Compression:

Stored size: 612 Bytes

Contents

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

require 'minitest/autorun'
require 'mongoid'
require 'pry'

require File.expand_path("../../lib/mongoid-userstamps", __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
  teardown do
    Mongoid.default_client.use('mongoid_userstamps_test').database.drop
    Mongoid::Userstamps::Config.reset
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mongoid-userstamps-3.1.3 test/test_helper.rb
mongoid-userstamps-3.1.2 test/test_helper.rb
mongoid-userstamps-3.1.1 test/test_helper.rb
mongoid-userstamps-3.1.0 test/test_helper.rb
mongoid-userstamps-3.0.0.alpha1 test/test_helper.rb