Sha256: 2bee6406c5a1166a3117031fc32b9891fe60037c5e0f010b3122f965914c5fc5
Contents?: true
Size: 1.08 KB
Versions: 1
Compression:
Stored size: 1.08 KB
Contents
# This file was generated by the `rspec --init` command. Conventionally, all # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. # Require this file using `require "spec_helper"` to ensure that it is only # loaded once. # # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration require 'mongoid' require 'mongoid-votable' require 'active_support' require 'factory_girl' FactoryGirl.find_definitions ENV['MONGOID_ENV'] = 'test' Mongoid.load!("#{File.dirname(__FILE__)}/config/mongoid.yml") Mongoid.logger = nil RSpec.configure do |config| config.treat_symbols_as_metadata_keys_with_true_values = true config.run_all_when_everything_filtered = true config.filter_run :focus config.mock_with :rspec # Run specs in random order to surface order dependencies. If you find an # order dependency and want to debug it, you can fix the order by providing # the seed, which is printed after each run. # --seed 1234 config.order = 'random' config.include FactoryGirl::Syntax::Methods Dir['./spec/models/*.rb'].each { |f| require f } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongoid-votable-0.1.0 | spec/spec_helper.rb |