about summary refs log tree commit homepage
path: root/test/test_mogilefs_integration.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_mogilefs_integration.rb')
-rw-r--r--test/test_mogilefs_integration.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/test_mogilefs_integration.rb b/test/test_mogilefs_integration.rb
index 47dcb37..0556c5b 100644
--- a/test/test_mogilefs_integration.rb
+++ b/test/test_mogilefs_integration.rb
@@ -12,9 +12,7 @@ class TestMogileFSIntegration < TestMogIntegration
     assert_equal 4, @client.size("CRUD")
     assert_equal "DATA", @client.get_file_data("CRUD")
     sio = StringIO.new("")
-    rv = @client.get_file_data("CRUD") do |rd|
-      MogileFS::X.copy_stream(rd, sio)
-    end
+    rv = @client.get_file_data("CRUD", sio)
     assert_equal 4, rv
     assert_equal "DATA", sio.string
     assert_equal 8, @client.store_content("CRUD", "default", "MOARDATA")