Sha256: 19b09eb5a51c360aa19d7b2eb71d81fade9a3fa825cc9f1c9bbe26495688df08

Contents?: true

Size: 629 Bytes

Versions: 2

Compression:

Stored size: 629 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 'spec'
require 'spec/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

Spec::Runner.configure do |config|
  config.mock_with :mocha
  config.before :suite do
    Mongoid.master.collections.each(&:drop)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
trackoid-0.1.1 spec/spec_helper.rb
trackoid-0.1.0 spec/spec_helper.rb