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/10/17 16:03:24 UTC

[whimsy] branch master updated: Trailing spaces etc

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 783589d  Trailing spaces etc
783589d is described below

commit 783589dd07391810216246553aaf351e2a6f176a
Author: Sebb <se...@apache.org>
AuthorDate: Sat Oct 17 17:03:12 2020 +0100

    Trailing spaces etc
---
 lib/spec/lib/committee_spec.rb | 40 +++++++++++++++++++---------------------
 1 file changed, 19 insertions(+), 21 deletions(-)

diff --git a/lib/spec/lib/committee_spec.rb b/lib/spec/lib/committee_spec.rb
index c587ffe..b5f4a8f 100644
--- a/lib/spec/lib/committee_spec.rb
+++ b/lib/spec/lib/committee_spec.rb
@@ -8,51 +8,50 @@ describe ASF::Committee do
   describe "ASF::Committee::site" do
     it "should return string for 'httpd'" do
       res = ASF::Committee.find('HTTP Server').site
-      expect(res).to match(%r{https?://httpd\.apache\.org/?}) 
+      expect(res).to match(%r{https?://httpd\.apache\.org/?})
     end
 
     it "should return nil for 'z-z-z'" do
       res = ASF::Committee.find('z-z-z').site
-      expect(res.class).to eq(NilClass) 
+      expect(res.class).to eq(NilClass)
     end
   end
 
   describe "ASF::Committee::description" do
     it "should return string for 'httpd'" do
       res = ASF::Committee.find('HTTP Server').description
-      expect(res).to match(%r{Apache Web Server}) 
+      expect(res).to match(%r{Apache Web Server})
     end
     it "should return nil for 'z-z-z'" do
       res = ASF::Committee.find('z-z-z').description
-      expect(res.class).to eq(NilClass) 
+      expect(res.class).to eq(NilClass)
     end
   end
 
   describe "ASF::Committee.metadata" do
     it "should return hash for 'httpd'" do
       res = ASF::Committee.metadata('httpd')
-      expect(res.class).to eq(Hash) 
-      expect(res[:site]).to match(%r{https?://httpd\.apache\.org/?}) 
+      expect(res.class).to eq(Hash)
+      expect(res[:site]).to match(%r{https?://httpd\.apache\.org/?})
     end
 
     it "should return nil for 'z-z-z'" do
       res = ASF::Committee.metadata('z-z-z')
-      expect(res.class).to eq(NilClass) 
+      expect(res.class).to eq(NilClass)
     end
 
     it "should return hash for 'httpd Committee'" do
       cttee = ASF::Committee.find('HTTP Server')
       res = ASF::Committee.metadata(cttee)
-      expect(res.class).to eq(Hash) 
+      expect(res.class).to eq(Hash)
       expect(res[:site]).to match(%r{https?://httpd\.apache\.org/?})
     end
 
     it "should return hash for 'comdev'" do
       res = ASF::Committee.metadata('comdev')
-      expect(res.class).to eq(Hash) 
-      expect(res[:site]).to match(%r{https?://community\.apache\.org/?}) 
+      expect(res.class).to eq(Hash)
+      expect(res[:site]).to match(%r{https?://community\.apache\.org/?})
     end
-
   end
 
   describe "ASF::Committee.appendtlpmetadata" do
@@ -64,27 +63,26 @@ describe ASF::Committee do
       # Wunderbar.logger = nil; is needed to ensure logging output works as expected
       expect { Wunderbar.logger = nil; res = ASF::Committee.appendtlpmetadata(input,'httpd','description') }.to output("_WARN Entry for 'httpd' already exists under :tlps\n").to_stderr
       expect(res).to eql(input)
-    end    
+    end
 
     it "should fail for 'comdev'" do
       res = nil
       # Wunderbar.logger = nil; is needed to ensure logging output works as expected
       expect { Wunderbar.logger = nil; res = ASF::Committee.appendtlpmetadata(input,'comdev','description') }.to output("_WARN Entry for 'comdev' already exists under :cttees\n").to_stderr
       expect(res).to eql(input)
-    end    
-    
+    end
+
     pmc = 'a-b-c'
     it "should succeed for '#{pmc}'" do
       res = nil
       desc = 'Description of A-B-C'
-      expect { res = ASF::Committee.appendtlpmetadata(input,pmc,desc) }.to output("").to_stderr
+      expect { res = ASF::Committee.appendtlpmetadata(input, pmc, desc) }.to output("").to_stderr
       expect(res).not_to eq(input)
       tlps = YAML.load(res)[:tlps]
       abc = tlps[pmc]
-      expect(abc.class).to eq(Hash) 
-      expect(abc[:site]).to match(%r{https?://#{pmc}\.apache\.org/?}) 
-      expect(abc[:description]).to eq(desc) 
-    end    
+      expect(abc.class).to eq(Hash)
+      expect(abc[:site]).to match(%r{https?://#{pmc}\.apache\.org/?})
+      expect(abc[:description]).to eq(desc)
+    end
   end
-
-end
\ No newline at end of file
+end