Sha256: b04057af10fcba7d2476bc266a445b00b2b3de5d321d1c34b08a2361a7651e5f
Contents?: true
Size: 1 KB
Versions: 7
Compression:
Stored size: 1 KB
Contents
require 'test_helper' module Vedeu describe VirtualBuffer do let(:described) { Vedeu::VirtualBuffer } before { described.clear } describe '#retrieve' do subject { described.retrieve } context 'when no buffers are stored' do it { subject.must_be_instance_of(NilClass) } end context 'when buffers are stored' do before { described.store([[Vedeu::Char.new]]) } it { subject.must_be_instance_of(Array) } end end describe '#store' do let(:data) { :data } subject { described.store(data) } it { subject.must_be_instance_of(Array) } it { subject.wont_be_empty } end describe '#size' do subject { described.size } it { subject.must_be_instance_of(Fixnum) } end describe '#clear' do subject { described.clear } it { subject.must_be_instance_of(Array) } it { subject.must_be_empty } it { described.must_respond_to(:reset) } end end # VirtualBuffer end # Vedeu
Version data entries
7 entries across 7 versions & 1 rubygems