Sha256: 5ef583ff02182f097b6991060c706e9e74a483825e6dd8eac6faa31df89631ff
Contents?: true
Size: 552 Bytes
Versions: 15
Compression:
Stored size: 552 Bytes
Contents
$LOAD_PATH.unshift File.expand_path('..', __dir__) ENV['RACK_ENV'] = 'test' require 'mongoid' require 'database_cleaner' require 'slack-ruby-bot-server/rspec' Mongoid.load!(File.expand_path('../config/mongoid.yml', __dir__), ENV['RACK_ENV']) RSpec.configure do |config| config.before :suite do Mongo::Logger.logger.level = Logger::INFO Mongoid::Tasks::Database.create_indexes end config.after :suite do Mongoid.purge! end config.around :each do |example| DatabaseCleaner.cleaning do example.run end end end
Version data entries
15 entries across 15 versions & 1 rubygems