You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2020/06/06 14:46:12 UTC

[whimsy] branch master updated: Check non-existent file

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 <se...@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