Sha256: 991b503bbf3c41bb30221a33719cbf470d7a84f4c93c6f08875e069092fdaea6
Contents?: true
Size: 1.07 KB
Versions: 4
Compression:
Stored size: 1.07 KB
Contents
require_relative '../../../test_helper' module Troo module CLI describe Refresh do let(:described_class) { Refresh } describe '#all' do before { Retrieval::Remote.stubs(:fetch).returns([]) } subject { capture_io { described_class.new.all }.join } it 'returns the output of the command' do subject.must_match(/Cannot refresh all local data/) end end describe '#board' do subject { capture_io { described_class.new.board }.join } it 'returns the output of the command' do subject.must_match(/Board cannot be found/) end end describe '#card' do subject { capture_io { described_class.new.card }.join } it 'returns the output of the command' do subject.must_match(/Card cannot be found/) end end describe '#list' do subject { capture_io { described_class.new.list }.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/refresh_test.rb |
troo-0.0.11 | test/lib/troo/cli/refresh_test.rb |
troo-0.0.10 | test/lib/troo/cli/refresh_test.rb |
troo-0.0.9 | test/lib/troo/cli/refresh_test.rb |