Sha256: 2f03e854773692d1160f5b26f8d9676e6cc756544da95da6f6f4c1c70e056f08
Contents?: true
Size: 529 Bytes
Versions: 4
Compression:
Stored size: 529 Bytes
Contents
require_relative '../../../test_helper' module Vedeu describe Input do let(:described_module) { Input } let(:input) { 'input' } before do Terminal.stubs(:input).returns(input) Queue.stubs(:enqueue).returns([input]) end describe '.capture' do let(:subject) { described_module.capture } it 'returns an Array' do subject.must_be_instance_of(Array) end it 'returns the enqueue input' do subject.must_equal([input]) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems