test/lib/troo/cli/default_test.rb in troo-0.0.12 vs test/lib/troo/cli/default_test.rb in troo-0.0.13
- old
+ new
@@ -8,28 +8,34 @@
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