Sha256: c174ec2cdd3b34bc83d664c414831c8b7fc8a295b6c2c9fa6f8441d81b05ce90
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
require_relative '../../../../test_helper' module Troo module Commands module Refresh describe All do let(:described_class) { All } before do @board = Fabricate.build(:board) @list = Fabricate.build(:list) @card = Fabricate.build(:card) External::Board.stubs(:fetch).returns([@board]) External::List.stubs(:fetch).returns([@list]) External::Card.stubs(:fetch).returns([@card]) External::Comment.stubs(:fetch).returns([]) External::Member.stubs(:fetch).returns([]) end describe '.dispatch' do subject { described_class.dispatch } context 'when all the resources are refreshed' do it 'returns a polite message' do subject.must_match(/All local data refreshed/) end end context 'when all the resources are not refreshed' do it 'returns a polite message' do skip('Not implemented yet.') end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
troo-0.0.8 | test/lib/troo/commands/refresh/all_test.rb |