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

Version Path
rubyredrick-ri_cal-0.7.0 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.7.1 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.7.2 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.7.4 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.7.5 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.7.7 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.8.0 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.8.1 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.8.2 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.8.4 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
awallis-ri_cal-0.8.8 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
justinsoong-ri_cal-0.8.9 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
justinsoong-ri_cal-0.8.8 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
micahwedemeyer-ri_cal-0.8.10 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
micahwedemeyer-ri_cal-0.8.9 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
ri_cal-0.8.8 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
ri_cal-0.8.7 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
ri_cal-0.8.6 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
miguelbaldi-ri_cal-0.1 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
ri_cal-0.8.5 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb