diff options
-rw-r--r-- | test/test_fresh.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_fresh.rb b/test/test_fresh.rb index f3d3df1..9499db5 100644 --- a/test/test_fresh.rb +++ b/test/test_fresh.rb @@ -138,7 +138,7 @@ class TestMogFresh < Test::Unit::TestCase if IO.respond_to?(:copy_stream) # ensure we match IO.copy_stream semantics dst = StringIO.new - IO.copy_stream(src, dst, *range) + IO.copy_stream(src.to_io, dst, *range) assert_equal dst.string, dst2.string assert_equal dst.string, client.get_file_data("key", nil, *range) end |