test/lib/vedeu/models/interface_collection_test.rb in vedeu-0.0.31 vs test/lib/vedeu/models/interface_collection_test.rb in vedeu-0.0.32
- old
+ new
@@ -11,15 +11,16 @@
it 'returns an empty collection when there are no interfaces' do
Composition.new.interfaces.must_equal([])
end
- it 'returns a collection of Interface objects when there is a single interface' do
+ it 'returns a collection when there is a single interface' do
skip
- Composition.new({ name: 'dummy' }).interfaces.first.must_be_instance_of(Interface)
+ Composition.new({ name: 'dummy' }).interfaces.first
+ .must_be_instance_of(Interface)
end
- it 'returns a collection of Interface objects when there are multiple interfaces' do
+ it 'returns a collection when there are multiple interfaces' do
Composition.new({ interfaces: [
{ name: 'dumb' },
{ name: 'dumber' }
]}).interfaces.size.must_equal(2)
end