From e2da84c1fd9052791ed2b684741469570e09ea35 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Mon, 9 Feb 2015 17:02:01 -0500 Subject: [PATCH] 5176: Add more Ruby SDK tests for empty manifests. I wrote these while trying to diagnose other issues in the branch. They didn't reveal anything directly, but it seems like a waste to write tests and not commit them, so here they are. --- sdk/ruby/test/test_keep_manifest.rb | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sdk/ruby/test/test_keep_manifest.rb b/sdk/ruby/test/test_keep_manifest.rb index 39ce86863b..50a3d36210 100644 --- a/sdk/ruby/test/test_keep_manifest.rb +++ b/sdk/ruby/test/test_keep_manifest.rb @@ -57,6 +57,22 @@ class ManifestTest < Minitest::Test assert_empty(Keep::Manifest.new("").each_line.to_a) end + def test_empty_each_file_spec + assert_empty(Keep::Manifest.new("").each_file_spec.to_a) + end + + def test_empty_files + assert_empty(Keep::Manifest.new("").files) + end + + def test_empty_files_count + assert_equal(0, Keep::Manifest.new("").files_count) + end + + def test_empty_has_file? + refute(Keep::Manifest.new("").has_file?("")) + end + def test_empty_line_within_manifest block_s = random_block manifest = Keep::Manifest. -- 2.39.5