Sha256: 1a28ac01b8eded7ebe396feface79cabb414ffece1f6ee27d146e96092b54852

Contents?: true

Size: 537 Bytes

Versions: 4

Compression:

Stored size: 537 Bytes

Contents

$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") ].sort.each do |file|
  name = File.basename(file, ".rb")
  autoload name.camelize.to_sym, name
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongoid-suicide-0.3.0 spec/spec_helper.rb
mongoid-suicide-0.2.0 spec/spec_helper.rb
mongoid-suicide-0.1.0 spec/spec_helper.rb
mongoid-suicide-0.0.1 spec/spec_helper.rb