minor: test fix
This commit is contained in:
parent
c25f1f5997
commit
0460491863
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue