Sha256: 452c9c01a8dad5787e355dbaefe81fc5c6dee4bf2f96d6efb740606e3aec0409
Contents?: true
Size: 607 Bytes
Versions: 1
Compression:
Stored size: 607 Bytes
Contents
require 'test_helper' module Vedeu describe Line do let(:line) { Line.new({ colour: { foreground: '#ff0000', background: '#000000' }, streams: [], style: 'normal' }) } it 'has a colour attribute' do line.colour.must_be_instance_of(Colour) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.1.10 | test/lib/vedeu/models/line_test.rb |