You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/examples/from_ical_spec.rb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -458,7 +458,7 @@ def sorted_ical(ical)
458
458
it"matches simple daily"do
459
459
ical_string="DTSTART:20130314T201500Z\nDTEND:20130314T201545Z\nRRULE:FREQ=WEEKLY;BYDAY=TH;UNT\n IL=20130531T100000Z\nDESCRIPTION:This is a test event\nSUMMARY:Test Event\n"
460
460
schedule=IceCube::Schedule.from_ical(ical_string)
461
-
expect(schedule.to_ical.split(/\n/).select{|x| x =~ /RRULE/}.first).toeq("RRULE:FREQ=WEEKLY;UNTIL=20130531T100000Z;BYDAY=TH")
461
+
expect(schedule.to_ical.split("\n").find{|x| x =~ /RRULE/}).toeq("RRULE:FREQ=WEEKLY;UNTIL=20130531T100000Z;BYDAY=TH")
0 commit comments