Sha256: 203c28146d6d81391b6f9bf982900101566ebc8809985b14d0ad67d0076c15d6
Contents?: true
Size: 700 Bytes
Versions: 60
Compression:
Stored size: 700 Bytes
Contents
#- ©2009 Rick DeNatale, All rights reserved. Refer to the file README.txt for the license require File.join(File.dirname(__FILE__), %w[.. .. .. spec_helper]) describe RiCal::PropertyValue::RecurrenceRule::RecurringYearDay do def set_it(which, rule=nil) @it = RiCal::PropertyValue::RecurrenceRule::RecurringYearDay.new(which, rule) end def time_property(str) RiCal::PropertyValue.date_or_date_time(nil, :value => str) end describe ".matches_for(time)" do it "should return an array containing January 1, in the times year for the the 1st day" do set_it(1).matches_for(time_property("19970603T090000")).should == [time_property("19970101T090000")] end end end
Version data entries
60 entries across 60 versions & 8 rubygems