Sha256: d18737b089286e5fdcedb9b25a0c5bb6dbd431ca4326f67a91ac1c41fe02fed4

Contents?: true

Size: 561 Bytes

Versions: 1

Compression:

Stored size: 561 Bytes

Contents

# frozen_string_literal: true

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

MODELS = File.join(File.dirname(__FILE__), 'app/models')
$LOAD_PATH.unshift(MODELS)

require 'mongoid'
require 'mongoid-suicide'
require 'rspec'

# Moped.logger.level = Logger::DEBUG
# Mongoid.logger.level = Logger::DEBUG

# Autoload every model for the test suite that sits in spec/app/models.
Dir[File.join(MODELS, '*.rb')].each do |file|
  name = File.basename(file, '.rb')
  autoload name.camelize.to_sym, name
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid-suicide-0.5.0 spec/spec_helper.rb