Sha256: 7ae0c1f8a59a3b8850d6f13c88fe295c62115281144ed3b93b201c064ac70af4
Contents?: true
Size: 742 Bytes
Versions: 5
Compression:
Stored size: 742 Bytes
Contents
require 'test_helper' require 'vedeu/models/line' module Vedeu describe Line do let(:line) { Line.new({ colour: { foreground: '#ff0000', background: '#000000' }, model: {}, streams: [], style: 'normal' }) } it 'has a colour attribute' do line.colour.must_be_instance_of(Colour) end it 'has a model attribute' do line.model.must_be_instance_of(Hash) end it 'has a streams attribute' do line.streams.must_equal([]) end describe '#to_s' do it 'returns a String' do line.to_s.must_equal( "\e[38;5;196m\e[48;5;16m" \ "\e[24m\e[21m\e[27m" ) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems