Sha256: a891785a000c91a0cb5b947e34380a21da36cfc46188c2dcdf193c3d13613e31
Contents?: true
Size: 962 Bytes
Versions: 1
Compression:
Stored size: 962 Bytes
Contents
require_relative '../../../../test_helper' module Vedeu module Buffer describe Stream do let(:described_class) { Stream } let(:described_instance) { described_class.new(attributes) } let(:subject) { described_instance } let(:attributes) { { style: 'normal', foreground: :red, background: :black, text: 'Some text' } } it 'returns a Stream instance' do subject.must_be_instance_of(Stream) end it 'has a foreground attribute' do subject.foreground.must_be_instance_of(Symbol) end it 'has a background attribute' do subject.background.must_be_instance_of(Symbol) end it 'has a text attribute' do subject.text.must_be_instance_of(String) end it 'has a style attribute' do subject.style.must_be_instance_of(Array) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.23 | test/lib/vedeu/output/buffer/stream_test.rb |