Sha256: af3ae64c5063707d6825cd380e1f5ceae96a6be1b3ca2cbf5d141f74f10fe3e7

Contents?: true

Size: 533 Bytes

Versions: 7

Compression:

Stored size: 533 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))

require 'rspec'
require 'mongoid'
require 'mongoid-history'
require 'database_cleaner'

Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}

RSpec.configure do |config|
  config.before(:suite) do
    DatabaseCleaner.strategy = :truncation
  end

  config.after(:each) do
    DatabaseCleaner.clean
  end
end

Mongoid.configure do |config|
  config.master = Mongo::Connection.new.db("mongoid-history")
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mongoid-history-0.2.3 spec/spec_helper.rb
mongoid-history-0.2.2 spec/spec_helper.rb
mongoid-history-0.2.1 spec/spec_helper.rb
mongoid-history-0.1.7 spec/spec_helper.rb
mongoid-history-0.1.6 spec/spec_helper.rb
mongoid-history-0.1.5 spec/spec_helper.rb
mongoid-history-0.1.4 spec/spec_helper.rb