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 2019/05/28 01:14:47 UTC

[whimsy] branch master updated: Set up and use the dummy data

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 52a3953  Set up and use the dummy data
52a3953 is described below

commit 52a3953aa5bda2d71dc4451dc081afb4f871d6e7
Author: Sebb <se...@apache.org>
AuthorDate: Tue May 28 02:14:44 2019 +0100

    Set up and use the dummy data
---
 .travis.yml                     |  2 ++
 lib/spec/lib/mail/mlist_spec.rb | 14 +++++++-------
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index a4b72a6..8b16e57 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -34,6 +34,8 @@ sudo: required
 before_script:
   - export rvmsudo_secure_path=1
   - rvmsudo ruby -I $PWD/lib -r whimsy/asf -e "ASF::LDAP.configure"
+  - sudo mkdir /srv/subscriptions
+  - sudo cp lib/test/subscriptions /srv/subscriptions
 
 ########################################################################
 #                             Notification                             #
diff --git a/lib/spec/lib/mail/mlist_spec.rb b/lib/spec/lib/mail/mlist_spec.rb
index 8650b6c..7a39e8c 100644
--- a/lib/spec/lib/mail/mlist_spec.rb
+++ b/lib/spec/lib/mail/mlist_spec.rb
@@ -7,7 +7,7 @@ require 'whimsy/asf/mlist' # not loaded by default
 describe ASF::MLIST do
 
   describe "ASF::MLIST.members_subscribers" do
-    it "should return an array of members@ subscribers followed by the file update time", :skip => TEST_DATA do
+    it "should return an array of members@ subscribers followed by the file update time" do
       res = ASF::MLIST.members_subscribers()
       expect(res.class).to eq(Array)
       expect(res.length).to eq(2)
@@ -19,7 +19,7 @@ describe ASF::MLIST do
   end
 
   describe "ASF::MLIST.list_archivers" do
-    it "should return array of form [dom, list, [[archiver, type, alias|direct],...]", :skip => TEST_DATA do
+    it "should return array of form [dom, list, [[archiver, type, alias|direct],...]" do
       ASF::MLIST.list_archivers do |res|
         expect(res.class).to eq(Array)
         expect(res.length).to eq(3)
@@ -35,7 +35,7 @@ describe ASF::MLIST do
   end
 
   describe "ASF::MLIST.moderates(user_emails, response)" do
-    it "should not find any entries for invalid emails", :skip => TEST_DATA do
+    it "should not find any entries for invalid emails" do
       user_emails=['user@localhost', 'user@domain.invalid']
       res = ASF::MLIST.moderates(user_emails)
       expect(res.length).to eq(2)
@@ -43,7 +43,7 @@ describe ASF::MLIST do
       expect(mods.length).to eq(0)
     end
 
-    it "should find some entries for mod-private@gsuite.cloud.apache.org", :skip => TEST_DATA do
+    it "should find some entries for mod-private@gsuite.cloud.apache.org" do
       user_emails=['mod-private@gsuite.cloud.apache.org']
       res = ASF::MLIST.moderates(user_emails)
       expect(res.length).to eq(2)
@@ -53,7 +53,7 @@ describe ASF::MLIST do
   end
 
   describe "ASF::MLIST.subscriptions(user_emails, response)" do
-    it "should not find any entries for invalid emails", :skip => TEST_DATA do
+    it "should not find any entries for invalid emails" do
       user_emails=['user@localhost', 'user@domain.invalid']
       res = ASF::MLIST.subscriptions(user_emails)
       expect(res.length).to eq(2)
@@ -62,7 +62,7 @@ describe ASF::MLIST do
     end
   end
 
-  it "should find lots of entries for archiver@mbox-vm.apache.org", :skip => TEST_DATA do
+  it "should find lots of entries for archiver@mbox-vm.apache.org" do
     user_emails=['archiver@mbox-vm.apache.org']
     res = ASF::MLIST.subscriptions(user_emails)
     expect(res.length).to eq(2)
@@ -71,7 +71,7 @@ describe ASF::MLIST do
   end
 
   describe "ASF::MLIST.each_list" do
-    it "should return an array of form [[dom, list],...]", :skip => TEST_DATA do
+    it "should return an array of form [[dom, list],...]" do
       ASF::MLIST.each_list do |res|
         expect(res.class).to eq(Array)
         expect(res.length).to eq(2)