Skip to content

Commit 4706343

Browse files
committed
Fix warnings for ambiguous "/" syntax
1 parent 9eb01b4 commit 4706343

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/examples/to_ical_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,13 @@
214214
end
215215

216216
it 'should be able to serialize to ical with an until date' do
217-
rule = IceCube::Rule.weekly.until Time.now
218-
expect(rule.to_ical).to match /^FREQ=WEEKLY;UNTIL=\d{8}T\d{6}Z$/
217+
rule = IceCube::Rule.weekly.until Time.utc(2123, 12, 31, 12, 34, 56.25)
218+
expect(rule.to_ical).to match "FREQ=WEEKLY;UNTIL=21231231T123456Z"
219219
end
220220

221221
it 'should be able to serialize to ical with a count date' do
222222
rule = IceCube::Rule.weekly.count(5)
223-
expect(rule.to_ical).to match /^FREQ=WEEKLY;COUNT=5$/
223+
expect(rule.to_ical).to eq "FREQ=WEEKLY;COUNT=5"
224224
end
225225

226226
%w{secondly minutely hourly daily monthly yearly}.each do |mthd|

0 commit comments

Comments
 (0)