diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-11-08 22:46:22 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-11-08 22:46:22 +0000 |
commit | 42449ebe6d56ef76249c52267fe5e786edccbba5 (patch) | |
tree | c1fa6bedf4e8bb008211ee7de05df3f1bdbcd504 /test/test_mogilefs_integration.rb | |
parent | d9d627d79f5beb38b048ce17c88b779eda1a75b8 (diff) | |
download | mogilefs-client-42449ebe6d56ef76249c52267fe5e786edccbba5.tar.gz |
Just like IO.copy_stream
Diffstat (limited to 'test/test_mogilefs_integration.rb')
-rw-r--r-- | test/test_mogilefs_integration.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test_mogilefs_integration.rb b/test/test_mogilefs_integration.rb index 0556c5b..e42185a 100644 --- a/test/test_mogilefs_integration.rb +++ b/test/test_mogilefs_integration.rb @@ -11,6 +11,9 @@ class TestMogileFSIntegration < TestMogIntegration assert_equal 4, @client.store_content("CRUD", "default", "DATA") assert_equal 4, @client.size("CRUD") assert_equal "DATA", @client.get_file_data("CRUD") + assert_equal "DAT", @client.get_file_data("CRUD", nil, 3) + assert_equal "AT", @client.get_file_data("CRUD", nil, 2, 1) + sio = StringIO.new("") rv = @client.get_file_data("CRUD", sio) assert_equal 4, rv |