test/lib/troo/cli/show_test.rb in troo-0.0.12 vs test/lib/troo/cli/show_test.rb in troo-0.0.13
- old
+ new
@@ -6,40 +6,50 @@
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