Sha256: 5ea0c13a2f82529ee126c39c53e2a1be2884d805eb23b0e17d972f9d9c71e658

Contents?: true

Size: 1.01 KB

Versions: 3

Compression:

Stored size: 1.01 KB

Contents

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

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

      describe '#board' do
        let(:id) {}

        subject { capture_io { described_class.new.board(id) }.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 '#card' do
        let(:id) {}

        subject { capture_io { described_class.new.card(id) }.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 '#list' do
        let(:id) {}

        subject { capture_io { described_class.new.list(id) }.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
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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