Sha256: ca8e4b051cf226d071b668fb2d00d21d21de8436c5463afcdc01a5ed342adf37
Contents?: true
Size: 943 Bytes
Versions: 1
Compression:
Stored size: 943 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 describe '#method_missing' do it 'returns nil' do Composition.new.some_missing_method(:test).must_equal(nil) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.2.4 | test/lib/vedeu/models/composition_test.rb |