This is an automated email from the ASF dual-hosted git repository.
rubys 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 058e2d3 check for dates in general, not for past dates
058e2d3 is described below
commit 058e2d37e9efd7ccef351041c6efabf3d70a0921
Author: Sam Ruby <[email protected]>
AuthorDate: Wed Apr 29 17:48:03 2020 -0400
check for dates in general, not for past dates
---
www/board/agenda/spec/actions_spec.rb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/www/board/agenda/spec/actions_spec.rb
b/www/board/agenda/spec/actions_spec.rb
index 970c621..e95278c 100644
--- a/www/board/agenda/spec/actions_spec.rb
+++ b/www/board/agenda/spec/actions_spec.rb
@@ -334,7 +334,7 @@ feature 'server actions' do
@reminder = 'reminder1'
response = eval(File.read('views/actions/reminder-text.json.rb'))
expect(response[:subject]).to \
- eq('[project] Board Report due for February 2015 - Initial Reminder')
+ match(/\[project\] Board Report due for \w+ \d+ - Initial Reminder/)
expect(response[:body]).to match(/It is an initial reminder/)
expect(response[:body]).to \
match(/the deadline for\ssubmitting your report is 1 full week/)
@@ -345,7 +345,7 @@ feature 'server actions' do
@reminder = 'reminder2'
response = eval(File.read('views/actions/reminder-text.json.rb'))
expect(response[:subject]).to \
- eq('[project] Board Report due for February 2015 - is now due!')
+ match(/\[project\] Board Report due for \w+ \d+ - is now due!/)
expect(response[:body]).to match(/These reports are\snow due/)
expect(response[:body]).to \
match(/The meeting is scheduled for Wed, 18 Feb 2015 at 10:30 PST\./)