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: Update unit test
Date Tue, 05 Apr 2016 00:03:19 GMT
This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/whimsy.git

The following commit(s) were added to refs/heads/master by this push:
       new  eab4b14   Update unit test
eab4b14 is described below

commit eab4b14c2ce3c6efbc72a62dc60e46546a29b191
Author: Sebb <sebb@apache.org>
AuthorDate: Tue Apr 5 01:03:11 2016 +0100

    Update unit test
---
 www/status/monitors/board_minutes.rb | 3 ++-
 www/status/monitors/public_json.rb   | 4 ++--
 www/status/monitors/secmail.rb       | 3 ++-
 www/status/monitors/svn.rb           | 3 ++-
 www/status/monitors/system.rb        | 4 ++--
 5 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/www/status/monitors/board_minutes.rb b/www/status/monitors/board_minutes.rb
index 98c4566..93eb743 100644
--- a/www/status/monitors/board_minutes.rb
+++ b/www/status/monitors/board_minutes.rb
@@ -25,5 +25,6 @@ end
 
 # for debugging purposes
 if __FILE__ == $0
-  puts Monitor.board_minutes(nil)
+  require_relative 'unit_test'
+  runtest('board_minutes') # must agree with method name above
 end
\ No newline at end of file
diff --git a/www/status/monitors/public_json.rb b/www/status/monitors/public_json.rb
index 9fcbd5d..9a7be03 100644
--- a/www/status/monitors/public_json.rb
+++ b/www/status/monitors/public_json.rb
@@ -96,6 +96,6 @@ end
 
 # for debugging purposes
 if __FILE__ == $0
-  require 'json'
-  puts JSON.pretty_generate(Monitor.public_json(nil))
+  require_relative 'unit_test'
+  runtest('public_json') # must agree with method name above
 end
diff --git a/www/status/monitors/secmail.rb b/www/status/monitors/secmail.rb
index 566db40..2ef9e73 100644
--- a/www/status/monitors/secmail.rb
+++ b/www/status/monitors/secmail.rb
@@ -10,5 +10,6 @@ end
 
 # for debugging purposes
 if __FILE__ == $0
-  puts Monitor.secmail(nil)
+  require_relative 'unit_test'
+  runtest('secmail') # must agree with method name above
 end
diff --git a/www/status/monitors/svn.rb b/www/status/monitors/svn.rb
index 570fc05..2dd7ac3 100644
--- a/www/status/monitors/svn.rb
+++ b/www/status/monitors/svn.rb
@@ -57,5 +57,6 @@ end
 
 # for debugging purposes
 if __FILE__ == $0
-  puts Monitor.svn(nil)
+  require_relative 'unit_test'
+  runtest('svn') # must agree with method name above
 end
diff --git a/www/status/monitors/system.rb b/www/status/monitors/system.rb
index 029da34..34465e0 100644
--- a/www/status/monitors/system.rb
+++ b/www/status/monitors/system.rb
@@ -34,6 +34,6 @@ end
 
 # for debugging purposes
 if __FILE__ == $0
-  require 'json'
-  puts JSON.pretty_generate(Monitor.system(nil))
+  require_relative 'unit_test'
+  runtest('system') # must agree with method name above
 end

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message