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:06:14 UTC

[whimsy] branch master updated: Wrap long lines

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 9bbcba8  Wrap long lines
9bbcba8 is described below

commit 9bbcba883b053a3f6dc14b7ce73bbe31dcd6ff88
Author: Sebb <se...@apache.org>
AuthorDate: Sat Oct 17 17:06:06 2020 +0100

    Wrap long lines
---
 lib/spec/lib/committee_spec.rb | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/lib/spec/lib/committee_spec.rb b/lib/spec/lib/committee_spec.rb
index b5f4a8f..149b8b5 100644
--- a/lib/spec/lib/committee_spec.rb
+++ b/lib/spec/lib/committee_spec.rb
@@ -61,14 +61,20 @@ describe ASF::Committee do
     it "should fail for 'httpd'" do
       res = nil
       # 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 {
+        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
 
     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 {
+        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
 
@@ -78,7 +84,7 @@ describe ASF::Committee do
       desc = 'Description of A-B-C'
       expect { res = ASF::Committee.appendtlpmetadata(input, pmc, desc) }.to output("").to_stderr
       expect(res).not_to eq(input)
-      tlps = YAML.load(res)[:tlps]
+      tlps = YAML.safe_load(res, [Symbol])[:tlps]
       abc = tlps[pmc]
       expect(abc.class).to eq(Hash)
       expect(abc[:site]).to match(%r{https?://#{pmc}\.apache\.org/?})