Sha256: 92a22a135dd5c4c8eb9ca796aa1af788656ad2fd1701cfbb1c123e86d1f4d57c

Contents?: true

Size: 504 Bytes

Versions: 1

Compression:

Stored size: 504 Bytes

Contents

require 'spec_helper'
require 'markdo/commands/tag_command'

module Markdo
  describe TagCommand do
    it 'outputs tasks with the given tag' do
      skip 'Dir.glob not supported' unless Dir.respond_to?(:glob)

      command_support = build_command_support({
        'MARKDO_ROOT' => 'spec/fixtures/tag_command'
      })

      TagCommand.new(command_support).run('foo')

      expect(command_support.stdout.string).to eq(<<-EOF)
- [ ] Tagged @foo in inbox
- [ ] Tagged @foo
      EOF
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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