Sha256: fca35ebdee496a6fedd11549d7c1171e7e4c452f5ada504abdccfc2e897f4fc3
Contents?: true
Size: 639 Bytes
Versions: 7
Compression:
Stored size: 639 Bytes
Contents
# This file is copied to ~/spec when you run 'ruby script/generate rspec' # from the project root directory. ENV["RAILS_ENV"] ||= 'test' require File.dirname(__FILE__) + "/../config/environment" unless defined?(RAILS_ROOT) require 'rspec/rails' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f} Rspec.configure do |config| config.mock_with :mocha config.before(:each) do Locomotive.config.heroku = false Mongoid.master.collections.select { |c| c.name != 'system.indexes' }.each(&:drop) end end
Version data entries
7 entries across 7 versions & 1 rubygems