Sha256: 815a6067b077277cf9476bb08e0b6c139a935a8b6d772f342b57ae0efb7c689f

Contents?: true

Size: 595 Bytes

Versions: 1

Compression:

Stored size: 595 Bytes

Contents

lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)

require 'rubygems'
require 'active_support'
require 'active_support/test_case'
require 'shoulda'
require 'matchy'
require 'mongo_mapper'
require 'models/widget'
require 'mongrations'

MongoMapper.connection = Mongo::Connection.new('127.0.0.1', 27017)
MongoMapper.database   = "mongrations-test"

class ActiveSupport::TestCase
  def teardown
    MongoMapper.connection.drop_database "mongrations-test"
  end

  def inherited(base)
    base.define_method teardown do
      super
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
leifcr-mongrations-0.1.7 test/test_helper.rb