Sha256: 889bb945b14ea0db32e75dd3b00da00aa75d385a4345a2c55c5bc447022277c8

Contents?: true

Size: 672 Bytes

Versions: 1

Compression:

Stored size: 672 Bytes

Contents

require 'spec_helper'
require 'markdo/commands/week_command'

module Markdo
  describe WeekCommand do
    it 'outputs tasks due over the next week, including today and tomorrow' do
      skip 'Dir.glob not supported' unless Dir.respond_to?(:glob)

      command_support = build_command_support_for_date_commands

      WeekCommand.new(command_support).run

      expect(command_support.stdout.string).to eq(<<-EOF)
- [ ] @due(2016-02-28) Due today in inbox
- [ ] @due(2016-02-28) Due today
- [ ] @due(2016-02-29) Due tomorrow in inbox
- [ ] @due(2016-02-29) Due tomorrow
- [ ] @due(2016-03-06) Due soon in inbox
- [ ] @due(2016-03-06) Due soon
      EOF
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
markdo-0.2.0 spec/lib/commands/week_command_spec.rb