whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Check non-existent file
Date Sat, 06 Jun 2020 14:46:12 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 257839c  Check non-existent file
257839c is described below

commit 257839c2b10a2692ff0a985187448cc961104c61
Author: Sebb <sebb@apache.org>
AuthorDate: Sat Jun 6 15:46:01 2020 +0100

    Check non-existent file
---
 lib/spec/lib/svn_spec.rb | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/spec/lib/svn_spec.rb b/lib/spec/lib/svn_spec.rb
index 7f163ea..cb09aa3 100644
--- a/lib/spec/lib/svn_spec.rb
+++ b/lib/spec/lib/svn_spec.rb
@@ -216,6 +216,12 @@ describe ASF::SVN do
       expect(revision).to match(/\d+/)
       expect(content.size).to be > 1000 # need a better test
     end
+    it "get(public url,'_____') should return 0 and nil" do
+      repo = File.join(ASF::SVN.svnurl('attic-xdocs'),'_____')
+      revision, content = ASF::SVN.get(repo)
+      expect(revision).to eq('0')
+      expect(content).to eq(nil)
+    end
   end
 
   describe "ASF::SVN.passwordStdinOK?" do


Mime
View raw message