Sha256: b17dfa9c144a16606557698ead0c43b1a4e1a4d44dc0ac03e590038722dec227
Contents?: true
Size: 536 Bytes
Versions: 2
Compression:
Stored size: 536 Bytes
Contents
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'grip' require 'test/unit' require 'shoulda' require 'factory_girl' require 'factories' require 'RMagick' 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
grip-0.6.12 | test/test_helper.rb |
grip-0.6.11 | test/test_helper.rb |