Sha256: 364187e1b84b62770533bffa259a3663214093f7298ad96fabee863a232f676c
Contents?: true
Size: 1.23 KB
Versions: 8
Compression:
Stored size: 1.23 KB
Contents
require 'test_helper' module Vedeu describe Output do let(:described) { Vedeu::Output } let(:instance) { described.new(interface) } let(:interface) { Vedeu.interface 'flourine' do geometry do height 3 width 32 end end } let(:lines) { [ Line.new({ streams: [Stream.new({ value: 'this is the first' })] }), Line.new({ streams: [Stream.new({ value: 'this is the second and it is long' })] }), Line.new({ streams: [Stream.new({ value: 'this is the third, it is even longer and still truncated' })] }), Line.new({ streams: [Stream.new({ value: 'this should not render' })] }), ] } before do interface.lines = lines IO.console.stubs(:print) end describe '#initialize' do it { instance.must_be_instance_of(described) } it { instance.instance_variable_get('@interface').must_equal(interface) } end describe '.render' do subject { described.render(interface) } it { subject.must_be_instance_of(Array) } context 'when a border is defined for the interface' do end context 'when a border is not defined for the interface' do end end end # Output end # Vedeu
Version data entries
8 entries across 8 versions & 1 rubygems