Sha256: f48cc662aa76c76f2ce02cbdb84e2c2c8d198aaa2e6dcffa6262d00cb3cb3830

Contents?: true

Size: 526 Bytes

Versions: 1

Compression:

Stored size: 526 Bytes

Contents

# FIXME: We should modify the load path here.
$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))

require 'mongoid'
require 'trackoid_mongoid4'
require 'rspec'
require 'pry'

RSpec.configure do |config|
  config.before(:suite) do
  	Mongoid.load!(File.expand_path(File.dirname(__FILE__) + "/../config/mongoid.yml"), :test)
  end
  config.expect_with :rspec do |c|
    c.syntax = [:should, :expect]
  end

  config.after(:each) do
    Mongoid::Config.purge!
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
trackoid_mongoid4-0.1.3 spec/spec_helper.rb