Sha256: 1a1d5b1c75e76718e437b9c4446feffb1cf34fa8a2b7a594ccf30522b25d457d
Contents?: true
Size: 1.51 KB
Versions: 2
Compression:
Stored size: 1.51 KB
Contents
require 'test_helper' module Vedeu module API describe Line do describe '#stream' do it 'returns the value assigned' do Line.new.stream do text 'Some text...' end.must_equal( [ { colour: {}, style: [], text: "Some text...", width: nil, align: :left } ] ) end end describe '#text' do it 'returns the value assigned' do Line.new.text('Some text...').must_equal( [ { text: 'Some text...' } ] ) end end describe '#foreground' do it 'returns the value assigned' do Line.new.foreground('#ff0000').must_equal( [ { colour: { foreground: "#ff0000" }, style: [], text: "", width: nil, align: :left } ] ) end end describe '#background' do it 'returns the value assigned' do Line.new.background('#00ff00').must_equal( [ { colour: { background: "#00ff00" }, style: [], text: "", width: nil, align: :left } ] ) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.1.17 | test/lib/vedeu/api/line_test.rb |
vedeu-0.1.16 | test/lib/vedeu/api/line_test.rb |