Sha256: d09e72228b3aa99df2d1c0165ed2d3f8f0ffaf1730b1f2b6b453ac2bdb634482

Contents?: true

Size: 779 Bytes

Versions: 1

Compression:

Stored size: 779 Bytes

Contents

# require 'codeclimate-test-reporter'
# CodeClimate::TestReporter.start

$LOAD_PATH << File.expand_path('../../lib', __FILE__)

# require 'pry'
# require 'database_cleaner'
require 'mongoid'
require 'mongoid-rspec'

require 'mongoid/urls'

ENV['MONGOID_ENV'] = 'test'

Mongoid.configure do |config|
  config.load_configuration(
    clients: {
      default: {
        database: 'mongoid_urls_test',
        hosts: ["localhost: #{ENV['BOXEN_MONGODB_PORT'] || 27_017}"],
        options: {}
      }
    })
end

require 'support/models'

Mongo::Logger.logger.level = Logger::INFO

RSpec.configure do |config|
  config.include Mongoid::Matchers

  config.before(:each) do
    Mongoid.purge!
  end

  config.after(:suite) do
    puts "\n# With Mongoid v#{Mongoid::VERSION}"
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongoid-urls-0.0.3 spec/spec_helper.rb