Sha256: ac0c5cbbfcfae531261d6da817e57f703783a8da72b5684e46de579b46289d86

Contents?: true

Size: 599 Bytes

Versions: 5

Compression:

Stored size: 599 Bytes

Contents

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

gem 'mocha', '>= 0.9.8'

require 'mocha'
require 'mongoid'
require 'gatoroid'
require 'bson'
require 'rspec'
require 'rspec/autorun'

Time.zone = "UTC"
Mongoid.configure do |config|
  name = "gatoroid_test"
  host = "localhost"
  port = "27017"
  config.master = Mongo::Connection.new.db(name)
end

RSpec.configure do |config|
  config.mock_with :mocha
  config.before :suite do
    Mongoid.master.collections.reject { |c| c.name =~ /^system\./ }.each(&:drop)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gatoroid-0.2.12 spec/spec_helper.rb
gatoroid-0.2.11 spec/spec_helper.rb
gatoroid-0.2.10 spec/spec_helper.rb
gatoroid-0.2.9 spec/spec_helper.rb
gatoroid-0.2.8 spec/spec_helper.rb