Fix sha1 test, dry up "remove ./tmp/foo" preparations
[arvados.git] / sdk / cli / test / test_arv-put.rb
index 1172bf8416fc66d1071482c67046898ebe8bfaad..de619b9d92280339a23e4edb5c7f1cb4fa9de4a8 100644 (file)
@@ -15,15 +15,6 @@ class TestArvPut < Minitest::Test
     end
   end
 
-  def test_no_args
-    out, err = capture_subprocess_io do
-      assert_equal(false, arv_put,
-                   'arv-put without args exits non-zero')
-    end
-    assert_equal '', out
-    assert_match /^usage:/, err
-  end
-
   def test_help
     out, err = capture_subprocess_io do
       assert_equal(true, arv_put('-h'),
@@ -99,6 +90,10 @@ class TestArvPut < Minitest::Test
     assert_equal '', out
   end
 
+  def test_read_from_implicit_stdin
+    test_read_from_stdin(specify_stdin_as='--manifest')
+  end
+
   def test_read_from_dev_stdin
     test_read_from_stdin(specify_stdin_as='/dev/stdin')
   end