Sha256: 025c9111ca5ab076192a4daf05524bc9564f4341577331abae872b465587511d
Contents?: true
Size: 747 Bytes
Versions: 2
Compression:
Stored size: 747 Bytes
Contents
require 'mongoid' require 'active_support/all' require 'rspec' require 'database_cleaner' Mongoid.configure do |config| config.connect_to('mongoid_report_test') end RSpec.configure do |config| config.after(:each) do Mongoid.purge! end config.backtrace_exclusion_patterns = [%r{lib\/rspec\/(core|expectations|matchers|mocks)}] end require_relative '../lib/mongoid/report.rb' require_relative 'support/models.rb' RSpec.configure do |config| require 'rspec/expectations' config.include RSpec::Matchers config.mock_with :rspec config.before(:suite) do DatabaseCleaner.clean_with(:truncation) end config.before(:each) do DatabaseCleaner.start end config.after(:each) do DatabaseCleaner.clean end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mongoid-report-0.0.6 | spec/spec_helper.rb |
mongoid-report-0.0.5 | spec/spec_helper.rb |