minor: test fix

This commit is contained in:
Kyle Banker 2010-07-09 16:01:55 -04:00
parent c25f1f5997
commit 0460491863
1 changed files with 1 additions and 3 deletions

View File

@ -52,9 +52,7 @@ class GridIOTest < Test::Unit::TestCase
should "raise an exception when check fails" do should "raise an exception when check fails" do
io = File.open(File.join(File.dirname(__FILE__), 'data', 'sample_file.pdf'), 'r') io = File.open(File.join(File.dirname(__FILE__), 'data', 'sample_file.pdf'), 'r')
db = mock() @db.stubs(:command).returns({'md5' => '12345'})
db.stubs(:command).returns({'md5' => '12345'})
@files.expects(:db).returns(db)
file = GridIO.new(@files, @chunks, 'bigfile', 'w', :safe => true) file = GridIO.new(@files, @chunks, 'bigfile', 'w', :safe => true)
file.write(io) file.write(io)
assert_raise GridMD5Failure do assert_raise GridMD5Failure do