Sha256: b892b84c49cddd957eca3d06b875f98045c1d44b6f1c18b68cd294edb66d2cff

Contents?: true

Size: 880 Bytes

Versions: 4

Compression:

Stored size: 880 Bytes

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 '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 '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 'returns the output of the command' do
          subject.must_match(/List cannot be found/)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
troo-0.0.12 test/lib/troo/cli/default_test.rb
troo-0.0.11 test/lib/troo/cli/default_test.rb
troo-0.0.10 test/lib/troo/cli/default_test.rb
troo-0.0.9 test/lib/troo/cli/default_test.rb