Sha256: bd981177e716b9213b5cff1a7f8c90a84dccc1573bfaa0e9e46aeeece4ffe564

Contents?: true

Size: 1.47 KB

Versions: 3

Compression:

Stored size: 1.47 KB

Contents

require_relative '../../../test_helper'

module Troo
  module CLI
    describe Show do
      let(:described_class) { Show }

      describe '#boards' do
        subject { capture_io { described_class.new.boards }.join }

        it { subject.must_be_instance_of(String) }

        it 'returns the output of the command' do
          subject.must_match(/Boards cannot be found/)
        end
      end

      describe '#board' do
        subject { capture_io { described_class.new.board }.join }

        it { subject.must_be_instance_of(String) }

        it 'returns the output of the command' do
          subject.must_match(/Board cannot be found/)
        end
      end

      describe '#list' do
        subject { capture_io { described_class.new.list }.join }

        it { subject.must_be_instance_of(String) }

        it 'returns the output of the command' do
          subject.must_match(/List cannot be found/)
        end
      end

      describe '#card' do
        subject { capture_io { described_class.new.card }.join }

        it { subject.must_be_instance_of(String) }

        it 'returns the output of the command' do
          subject.must_match(/Card cannot be found/)
        end
      end

      describe '#comments' do
        subject { capture_io { described_class.new.comments }.join }

        it { subject.must_be_instance_of(String) }

        it 'returns the output of the command' do
          subject.must_match(/Card cannot be found/)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
troo-0.0.15 test/lib/troo/cli/show_test.rb
troo-0.0.14 test/lib/troo/cli/show_test.rb
troo-0.0.13 test/lib/troo/cli/show_test.rb