Sha256: 5c47529e4e5503c3d9e2298729e447228c7b8ff385745ba2e28eaf26402183c1

Contents?: true

Size: 535 Bytes

Versions: 11

Compression:

Stored size: 535 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

11 entries across 11 versions & 1 rubygems

Version Path
mongoid-history-0.1.3 spec/spec_helper.rb
mongoid-history-0.1.2 spec/spec_helper.rb
mongoid-history-0.1.1 spec/spec_helper.rb
mongoid-history-0.1.0 spec/spec_helper.rb
mongoid-history-0.0.9 spec/spec_helper.rb
mongoid-history-0.0.8 spec/spec_helper.rb
mongoid-history-0.0.7 spec/spec_helper.rb
mongoid-history-0.0.6 spec/spec_helper.rb
mongoid-history-0.0.5 spec/spec_helper.rb
mongoid-history-0.0.4 spec/spec_helper.rb
mongoid-history-0.0.3 spec/spec_helper.rb