Sha256: 3ec2a5508f698b7fef2bb0b834cefdf505083125e17537c3e0bfaf99f015696a

Contents?: true

Size: 575 Bytes

Versions: 4

Compression:

Stored size: 575 Bytes

Contents

require 'simplecov'

SimpleCov.start do
  add_filter "/spec/"
end

require 'casino'
require 'minitest/autorun'
require 'minitest/pride'
require 'database_cleaner'
require 'fabrication'

Mongoid.load! "./spec/support/mongoid.yml", :test


require './spec/fixtures/models/model'
require './spec/fixtures/models/note'
require './spec/fixtures/collections/collection'
require './spec/fixtures/collections/emails_by_day'

DatabaseCleaner[:mongoid].strategy = :truncation

class MiniTest::Spec
  before(:each) { DatabaseCleaner.start }
  after(:each) { DatabaseCleaner.clean }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mongoid-casino-0.0.4 spec/spec_helper.rb
mongoid-casino-0.0.3 spec/spec_helper.rb
mongoid-casino-0.0.2 spec/spec_helper.rb
mongoid-casino-0.0.1 spec/spec_helper.rb