# Basic format checking...there are some online tools that
# check a lot more, but no ruby libs that I could find:
lines=ics.split("\r\n")
lines.shouldhave(12).items
lines.first.shouldeq("BEGIN:VCALENDAR")
lines.last.shouldeq("END:VCALENDAR")
lines[-2].shouldeq("END:VEVENT")
verify_ical(ics)
end
end
describe"with manual calendars"do
before:alldo
@creator=FactoryGirl.create(:user)
@creator.calendars<<Calendar.new({:name=>CALENDAR_NAME,:description=>"This is a test",:start_at=>(@start),:end_at=>@stop,:trigger_delete=>false,:target_uid=>"2112"})
end
it"can create calendar feed"do
#pending "foobar"
ics=@calendar_manager.create_ics_feed(@creator)
# Basic format checking...there are some online tools that
# check a lot more, but no ruby libs that I could find: