Sha256: 49e355a508439ec5ef39f1ca72f9acaf431d005156f44a4a2fd3b89e5303103a
Contents?: true
Size: 931 Bytes
Versions: 4
Compression:
Stored size: 931 Bytes
Contents
require 'rubygems' require 'bundler' require 'rspec' require 'factory_girl' require 'database_cleaner' $LOAD_PATH.unshift(File.dirname(__FILE__)) $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), "..", "lib")) require 'locomotive_plugins' # Set up mongoid ENV["MONGOID_ENV"] = "test" Mongoid.load!('spec/support/mongoid.yml') # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|f| require f} RSpec.configure do |config| config.mock_with :mocha # Use color in STDOUT config.color_enabled = true config.before(:suite) do DatabaseCleaner.strategy = :truncation DatabaseCleaner.orm = 'mongoid' end config.before(:each) do Mongoid::IdentityMap.clear end config.before(:each) do DatabaseCleaner.clean end config.after(:suite) do DatabaseCleaner.clean end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
locomotive_plugins-1.2.0 | spec/spec_helper.rb |
locomotive_plugins-1.1.1 | spec/spec_helper.rb |
locomotive_plugins-1.1.0 | spec/spec_helper.rb |
locomotive_plugins-1.0.1 | spec/spec_helper.rb |