Sha256: 805ecb1f999037e307ccb71211bdfbcf6d3b0ff95badaa79662954a0ec670f6a
Contents?: true
Size: 693 Bytes
Versions: 3
Compression:
Stored size: 693 Bytes
Contents
# require 'codeclimate-test-reporter' # CodeClimate::TestReporter.start $: << File.expand_path("../../lib", __FILE__) # require 'pry' # require 'database_cleaner' require 'mongoid' require 'mongoid-rspec' require 'mongoid/ids' ENV['MONGOID_ENV'] = "test" Mongoid.configure do |config| config.sessions = { default: { database: 'mongoid_ids_test', hosts: [ "localhost:#{ENV['BOXEN_MONGODB_PORT'] || 27017}" ], options: {} } } end RSpec.configure do |config| config.include Mongoid::Matchers # config.before(:suite) do # # DatabaseCleaner.strategy = :truncation # end config.before(:each) do # DatabaseCleaner.clean Mongoid.purge! end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mongoid-ids-0.1.8 | spec/spec_helper.rb |
mongoid-ids-0.1.7 | spec/spec_helper.rb |
mongoid-ids-0.1.1 | spec/spec_helper.rb |