Sha256: b892cfde026cdffe90d4b7518a471190fbb6c7db7389f87a0c75e91dd7c6a313
Contents?: true
Size: 720 Bytes
Versions: 1
Compression:
Stored size: 720 Bytes
Contents
require 'spec_helper' require 'markdo/commands/ics_command' module Markdo describe IcsCommand do it 'outputs an iCalendar feed from the input Markdown, skipping invalid dates' do skip 'Dir.glob not supported' unless Dir.respond_to?(:glob) command_support = build_command_support({ 'MARKDO_ROOT' => 'spec/fixtures/ics_command' }) IcsCommand.new(command_support).run expect(command_support.stdout.string).to eq(<<-ICS) BEGIN:VCALENDAR VERSION:2.0 CALSCALE:GREGORIAN METHOD:PUBLISH X-WR-CALNAME:Markdo Due Dates BEGIN:VEVENT DTSTART;VALUE=DATE:20160401 DTEND;VALUE=DATE:20160401 SUMMARY:Task with tag-style due date END:VEVENT END:VCALENDAR ICS end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
markdo-0.2.0 | spec/lib/commands/ics_command_spec.rb |