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
demingfactor-ri_cal-0.10.0 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
demingfactor-ri_cal-0.9.0 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
ebeigarts-ri_cal-0.8.1 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.0.10 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.0.11 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.0.3 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.0.4 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.0.5 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.0.6 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.0.7 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.0.8 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.0.9 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.5.0 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.5.1 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.5.2 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.5.3 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.6.0 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.6.1 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.6.2 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb
rubyredrick-ri_cal-0.6.3 spec/ri_cal/property_value/recurrence_rule/recurring_year_day_spec.rb