Sha256: 0067aee285a74aa051d2f590fa76ce33fbff99915796139f347fcb70f251ae4c
Contents?: true
Size: 945 Bytes
Versions: 2
Compression:
Stored size: 945 Bytes
Contents
require_relative '../../../../test_helper' module Vedeu module Buffer describe Interface do let(:described_class) { Interface } let(:described_instance) { described_class.new(attributes) } let(:subject) { described_instance } let(:attributes) { { name: 'dummy', line: [] } } it 'returns a Interface instance' do subject.must_be_instance_of(Interface) end it 'has a name attribute' do subject.name.must_be_instance_of(String) subject.name.must_equal('dummy') end it 'has a line attribute' do subject.line.must_be_instance_of(Array) subject.line.must_equal([]) end describe '#to_compositor' do let(:subject) { described_instance.to_compositor } it 'returns an Array' do subject.must_be_instance_of(Array) subject.must_equal([]) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.25 | test/lib/vedeu/output/buffer/interface_test.rb |
vedeu-0.0.24 | test/lib/vedeu/output/buffer/interface_test.rb |