Sha256: ba6c65f0179c50511402840e59cb1118176eeeb9582a91456eb01014577e7fad

Contents?: true

Size: 492 Bytes

Versions: 2

Compression:

Stored size: 492 Bytes

Contents

$: << File.expand_path("../../lib", __FILE__)

require 'database_cleaner'
require 'mongoid'
require 'mongoid-rspec'
require 'mongoid_token'
require 'mongoid/token/exceptions'

ENV['MONGOID_ENV'] = "test"

RSpec.configure do |config|
  config.include Mongoid::Matchers
  config.before(:suite) do
    DatabaseCleaner.strategy = :truncation
  end

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

Mongoid.load!( File.join(File.dirname(__FILE__), 'mongoid.yml') )

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongoid_token-1.1.1 spec/spec_helper.rb
mongoid_token-1.1.0 spec/spec_helper.rb