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.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test_mogilefs_integration.rb b/test/test_mogilefs_integration.rb
index d137a57..5f36404 100644
--- a/test/test_mogilefs_integration.rb
+++ b/test/test_mogilefs_integration.rb
@@ -50,4 +50,15 @@ class TestMogileFSIntegration < TestMogIntegration
     assert_equal 40, nr
     assert_equal("data" * 10, @client.get_file_data('store_content'))
   end
+
+  def test_store_non_rewindable
+    tmp = Object.new
+    def tmp.size
+      666
+    end
+
+    assert_raises(MogileFS::HTTPFile::NonRetryableError) do
+      @client.store_file("non_rewindable", nil, tmp)
+    end
+  end
 end