Skip to content

Commit

Permalink
Minor: moving test stuff around.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Mar 31, 2010
1 parent 8e06a58 commit 0b169df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions test/helper.rb
Expand Up @@ -10,6 +10,10 @@
MongoMapper.database = "testing"

class Test::Unit::TestCase
def setup
MongoMapper.database.collections.each(&:remove)
end

def assert_difference(expression, difference = 1, message = nil, &block)
b = block.send(:binding)
exps = Array.wrap(expression)
Expand Down
2 changes: 1 addition & 1 deletion test/test_joint.rb
Expand Up @@ -31,7 +31,7 @@ class JointTest < Test::Unit::TestCase
include JointTestHelpers

def setup
MongoMapper.database.collections.each(&:remove)
super
@file = open_file('unixref.pdf')
@image = open_file('mr_t.jpg')
@image2 = open_file('harmony.png')
Expand Down

0 comments on commit 0b169df

Please sign in to comment.