Sha256: 2e68b4658287a5279e9ae6a8d03f17baf5434041189634ee40d8725432e1424f

Contents?: true

Size: 722 Bytes

Versions: 6

Compression:

Stored size: 722 Bytes

Contents

begin
  require 'pry'
rescue LoadError
end

require 'mongoid'
require 'wisper'

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

6 entries across 6 versions & 1 rubygems

Version Path
fhwang-wisper-mongoid-0.3.0 spec/spec_helper.rb
fhwang-wisper-mongoid-0.2.4 spec/spec_helper.rb
fhwang-wisper-mongoid-0.2.3 spec/spec_helper.rb
fhwang-wisper-mongoid-0.2.2 spec/spec_helper.rb
fhwang-wisper-mongoid-0.2.1 spec/spec_helper.rb
fhwang-wisper-mongoid-0.2.0 spec/spec_helper.rb