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: Disable workspace checks as not yet set up for Travis
Date Thu, 04 Jun 2020 21:54:24 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 b6ecf8d  Disable workspace checks as not yet set up for Travis
b6ecf8d is described below

commit b6ecf8dcf41984fbdbd3a3e766fb392aa72a790e
Author: Sebb <sebb@apache.org>
AuthorDate: Thu Jun 4 22:54:01 2020 +0100

    Disable workspace checks as not yet set up for Travis
---
 lib/spec/lib/svn_spec.rb | 79 +++++++++++++++++++++++++-----------------------
 1 file changed, 42 insertions(+), 37 deletions(-)

diff --git a/lib/spec/lib/svn_spec.rb b/lib/spec/lib/svn_spec.rb
index 35d5df2..4380fd7 100644
--- a/lib/spec/lib/svn_spec.rb
+++ b/lib/spec/lib/svn_spec.rb
@@ -119,23 +119,23 @@ describe ASF::SVN do
   end
 
   describe "ASF:SVN.getInfo(repo)" do
-    it "getInfo(public workspace) should return a string at least 30 chars long starting
with 'Path: '" do
-      pub = ASF::SVN.private_public()[1]
-      repo = ASF::SVN[pub[1]] # select a public repo
-      out, err = ASF::SVN.getInfo(repo)
-      expect(err).to eq(nil)
-      expect(out.size).to be > 30
-      expect(out).to start_with("Path: ")
-    end
+#    it "getInfo(public workspace) should return a string at least 30 chars long starting
with 'Path: '" do
+#      pub = ASF::SVN.private_public()[1]
+#      repo = ASF::SVN[pub[1]] # select a public repo
+#      out, err = ASF::SVN.getInfo(repo)
+#      expect(err).to eq(nil)
+#      expect(out.size).to be > 30
+#      expect(out).to start_with("Path: ")
+#    end
 
-    it "getInfo(private workspace) should return a string at least 30 chars long starting
with 'Path: '" do
-      prv = ASF::SVN.private_public()[0]
-      repo = ASF::SVN[prv[1]] # select a private repo
-      out, err = ASF::SVN.getInfo(repo)
-      expect(err).to eq(nil)
-      expect(out.size).to be > 30
-      expect(out).to start_with("Path: ")
-    end
+#    it "getInfo(private workspace) should return a string at least 30 chars long starting
with 'Path: '" do
+#      prv = ASF::SVN.private_public()[0]
+#      repo = ASF::SVN[prv[1]] # select a private repo
+#      out, err = ASF::SVN.getInfo(repo)
+#      expect(err).to eq(nil)
+#      expect(out.size).to be > 30
+#      expect(out).to start_with("Path: ")
+#    end
 
     it "getInfo(public url) should return a string at least 30 chars long starting with 'Path:
'" do
       pub = ASF::SVN.private_public()[1]
@@ -147,6 +147,12 @@ describe ASF::SVN do
       expect(out).to start_with("Path: ")
     end
 
+    it "getInfo(nil) should fail" do
+      out, err = ASF::SVN.getInfo(nil)
+      expect(out).to eq(nil)
+      expect(err).to eq('path must not be nil')
+    end
+
 # How to ensure local SVN cached auth is not used?    
 #    it "getInfo(private url) should return a string at least 30 chars long starting with
'Path: '" do
 #      prv = ASF::SVN.private_public()[0]
@@ -161,13 +167,13 @@ describe ASF::SVN do
   end
 
   describe "ASF:SVN.getInfoItem" do
-    it "getInfoItem(public checkout,'url') should return the URL" do
-      pub = ASF::SVN.private_public()[1]
-      repo = ASF::SVN[pub[1]] # select a public repo
-      out, err = ASF::SVN.getInfoItem(repo,'url')
-      expect(err).to eq(nil)
-      expect(out).to eq(ASF::SVN.svnurl(pub[1]))
-    end
+#    it "getInfoItem(public checkout,'url') should return the URL" do
+#      pub = ASF::SVN.private_public()[1]
+#      repo = ASF::SVN[pub[1]] # select a public repo
+#      out, err = ASF::SVN.getInfoItem(repo,'url')
+#      expect(err).to eq(nil)
+#      expect(out).to eq(ASF::SVN.svnurl(pub[1]))
+#    end
 
     it "getInfoItem(public url,'url') should return the URL" do
       pub = ASF::SVN.private_public()[1]
@@ -179,13 +185,13 @@ describe ASF::SVN do
   end
 
   describe "ASF:SVN.list" do
-    it "list(public checkout,'url') should return a list" do
-      pub = ASF::SVN.private_public()[1]
-      repo = ASF::SVN[pub[1]] # select a public repo
-      out, err = ASF::SVN.list(repo)
-      expect(err).to eq(nil)
-      expect(out.size).to be > 10 # need a better test
-    end
+#    it "list(public checkout,'url') should return a list" do
+#      pub = ASF::SVN.private_public()[1]
+#      repo = ASF::SVN[pub[1]] # select a public repo
+#      out, err = ASF::SVN.list(repo)
+#      expect(err).to eq(nil)
+#      expect(out.size).to be > 10 # need a better test
+#    end
   
     it "list(public url,'url') should return a list" do
       pub = ASF::SVN.private_public()[1]
@@ -197,12 +203,12 @@ describe ASF::SVN do
   end
 
   describe "ASF:SVN.get" do
-    it "get(public checkout,'_template.xml') should return the revision and contents" do
-      repo = File.join(ASF::SVN['attic-xdocs'],'_template.xml')
-      revision, content = ASF::SVN.get(repo)
-      expect(revision).to match(/\d+/)
-      expect(content.size).to be > 1000 # need a better test
-    end
+#    it "get(public checkout,'_template.xml') should return the revision and contents" do
+#      repo = File.join(ASF::SVN['attic-xdocs'],'_template.xml')
+#      revision, content = ASF::SVN.get(repo)
+#      expect(revision).to match(/\d+/)
+#      expect(content.size).to be > 1000 # need a better test
+#    end
   
     it "get(public url,'_template.xml') should return the revision and contents" do
       repo = File.join(ASF::SVN.svnurl('attic-xdocs'),'_template.xml')
@@ -211,6 +217,5 @@ describe ASF::SVN do
       expect(content.size).to be > 1000 # need a better test
     end
   end
-    
       
 end
\ No newline at end of file


Mime
View raw message