Sha256: 4d244821d4569ee2532ab6fba140f8958e9c50d68e837209ddc71178b28e8cd3
Contents?: true
Size: 796 Bytes
Versions: 2
Compression:
Stored size: 796 Bytes
Contents
require 'test_helper' require 'json' module Vedeu describe Composition do before { Buffers.reset } describe '#initialize' do it 'returns an instance of itself' do attributes = {} Composition.new(attributes).must_be_instance_of(Composition) end end describe '#interfaces' do it 'returns a collection of interfaces' do Vedeu.interface('dummy') do width 5 height 5 end Composition.new({ interfaces: { name: 'dummy', lines: [] } }).interfaces.first.must_be_instance_of(Interface) end it 'returns an empty collection when no interfaces are associated' do Composition.new.interfaces.must_be_empty end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.2.3 | test/lib/vedeu/models/composition_test.rb |
vedeu-0.2.2 | test/lib/vedeu/models/composition_test.rb |