Sha256: 5f4c129ccd58fd11540dd110144f4c37915d1dfa6565260613510fa82f55a491
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
require 'spec_helper' describe RiCal::Component::Journal do describe ".entity_name" do it "should be VJOURNAL" do RiCal::Component::Journal.entity_name.should == "VJOURNAL" end end context ".start_time" do it "should be the same as dtstart for a date time" do event = RiCal.Journal {|e| e.dtstart = "20090525T151900"} event.start_time.should == DateTime.civil(2009,05,25,15,19,0,0) end it "should be the start of the day of dtstart for a date" do event = RiCal.Journal {|e| e.dtstart = "20090525"} event.start_time.should == DateTime.civil(2009,05,25,0,0,0,0) end end context ".finish_time" do it "should be the same as dtstart for a date time" do event = RiCal.Journal {|e| e.dtstart = "20090525T151900"} event.finish_time.should == DateTime.civil(2009,05,25,15,19,0,0) end it "should be the start of the day of dtstart for a date" do event = RiCal.Journal {|e| e.dtstart = "20090525"} event.finish_time.should == DateTime.civil(2009,05,25,0,0,0,0) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
friflaj_ri_cal-0.9.0 | spec/ri_cal/component/journal_spec.rb |