summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-16 16:49:25 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-16 16:49:25 +0200
commitaa752d4839375f313f0d3e0070e85fbbac13ced9 (patch)
treeac81636ef6131127f7b2dce156ba52c8e2b3bd90 /test
parent35dc05de97677d57123617a7c4e78aad1611b28d (diff)
Aggregate selected weeks in a more human friendly form
Weekdays appearing on a subset of the weeks of the month are now aggregated into a simpler form.
Diffstat (limited to 'test')
-rw-r--r--test/models/concerns/rrule_humanizer_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/models/concerns/rrule_humanizer_test.rb b/test/models/concerns/rrule_humanizer_test.rb
index c4e78d4..54c4c22 100644
--- a/test/models/concerns/rrule_humanizer_test.rb
+++ b/test/models/concerns/rrule_humanizer_test.rb
@@ -48,10 +48,10 @@ class RruleHumanizerTest < ActiveSupport::TestCase
48 end 48 end
49 49
50 test "monthly selected weeks" do 50 test "monthly selected weeks" do
51 assert_equal "Jeden ersten Dienstag und dritten Dienstag im Monat", 51 assert_equal "Jeden ersten, zweiten und fünften Dienstag im Monat",
52 humanize("FREQ=MONTHLY;BYDAY=1TU,3TU") 52 humanize("FREQ=MONTHLY;BYDAY=1TU,2TU,5TU")
53 assert_equal "Every first Tuesday and third Tuesday of the month", 53 assert_equal "Every first, second and fifth Tuesday of the month",
54 humanize("FREQ=MONTHLY;BYDAY=1TU,3TU", :en) 54 humanize("FREQ=MONTHLY;BYDAY=1TU,2TU,5TU", :en)
55 end 55 end
56 56
57 test "monthly fifth weekday" do 57 test "monthly fifth weekday" do