Sha256: 8085c82999cbc79e3860e4524586d00d7983d2eb18fa139b16952cf2a4a6cad6
Contents?: true
Size: 967 Bytes
Versions: 7
Compression:
Stored size: 967 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 # Composition end # Vedeu
Version data entries
7 entries across 7 versions & 1 rubygems