Sha256: eb12caad26d12088ede6d5b0696242aeefc3a097056dafd84878253eeca9aeed
Contents?: true
Size: 518 Bytes
Versions: 3
Compression:
Stored size: 518 Bytes
Contents
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'grip' require 'test/unit' require 'shoulda' require 'factory_girl' require 'factories' TEST_DB = 'test-grip' MongoMapper.database = TEST_DB class Test::Unit::TestCase def teardown MongoMapper.database.collections.each do |coll| coll.remove end end # Make sure that each test case has a teardown # method to clear the db after each test. def inherited(base) base.define_method teardown do super end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
grip-0.6.10 | test/test_helper.rb |
grip-0.6.9 | test/test_helper.rb |
grip-0.6.8 | test/test_helper.rb |