Sha256: dffb0e57d067d59a8e4c8b13c7ac7a326d317e77b4dab7cfeca94a4bdef570f9
Contents?: true
Size: 656 Bytes
Versions: 1
Compression:
Stored size: 656 Bytes
Contents
#- ©2009 Rick DeNatale #- All rights reserved 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyredrick-ri_cal-0.0.2 | spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb |