Sha256: 2645d3fc475d62e003b1a102a91d5cb83155295754fa66f3543c9c08621e0660

Contents?: true

Size: 791 Bytes

Versions: 1

Compression:

Stored size: 791 Bytes

Contents

begin
  require 'simplecov'
  SimpleCov.start do
    add_filter 'spec'
  end
rescue LoadError
end

require 'pry'
require 'wisper'
require 'mongoid'

puts "Using Mongoid #{Mongoid::VERSION}"

Mongoid.load!("spec/support/mongoid.yml", :test)

require 'wisper/mongoid'
require 'support/models'

RSpec.configure do |config|
  config.filter_run :focus
  config.run_all_when_everything_filtered = true

  if config.files_to_run.one?
    config.full_backtrace = true
    config.default_formatter = 'doc'
  end

  config.profile_examples = 10

  config.order = :random

  Kernel.srand config.seed

  config.expect_with :rspec do |expectations|
    expectations.syntax = :expect
  end

  config.mock_with :rspec do |mocks|
    mocks.syntax = :expect
    mocks.verify_partial_doubles = true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wisper-mongoid-0.1.0 spec/spec_helper.rb