Sha256: 2315d15e3e5c2bcf090b21a88b070daa834c490504944998467c79e6d37d93f8
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
require 'test_helper' module Vedeu describe Output do let(:described) { Output.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 { described.must_be_instance_of(Output) } it { described.instance_variable_get('@interface').must_equal(interface) } end describe '.render' do subject { Output.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.3.3 | test/lib/vedeu/output/output_test.rb |