Sha256: 784250193d9351e2db8f9afcae189720e80c584b629be9fc800b23206e64bc69

Contents?: true

Size: 676 Bytes

Versions: 8

Compression:

Stored size: 676 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 'trackoid'
require 'bson'
require 'rspec'
require 'rspec/autorun'

Mongoid.configure do |config|
  name = "trackoid_test"
  host = "localhost"
  port = "27017"
  # config.master = Mongo::Connection.new(host, port, :logger => Logger.new(STDOUT)).db(name)
  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

8 entries across 8 versions & 1 rubygems

Version Path
trackoid-0.3.7 spec/spec_helper.rb
trackoid-0.3.6 spec/spec_helper.rb
trackoid-0.3.5 spec/spec_helper.rb
trackoid-0.3.4 spec/spec_helper.rb
trackoid-0.3.3 spec/spec_helper.rb
trackoid-0.3.2 spec/spec_helper.rb
trackoid-0.3.1 spec/spec_helper.rb
trackoid-0.3.0 spec/spec_helper.rb