Sha256: a62f4b150cd9f504f544f786487d034a5848282412afe562d689842d2b5f4ff7
Contents?: true
Size: 697 Bytes
Versions: 2
Compression:
Stored size: 697 Bytes
Contents
require 'test_helper' require 'vedeu/models/attributes/stream_collection' require 'vedeu/models/line' module Vedeu describe StreamCollection do describe '#coerce' do it 'returns an empty array when there is no stream' do Line.new.streams.must_equal([]) end it 'contains a single Stream when there is a single stream' do Line.new({ streams: [{ text: 'some text' }] }).streams.size .must_equal(1) end it 'contains multiple Stream when there are multiple streams' do Line.new({ streams: [ { text: 'some text' }, { text: 'some more text' } ] }).streams.size.must_equal(2) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.1.9 | test/lib/vedeu/models/attributes/stream_collection_test.rb |
vedeu-0.1.8 | test/lib/vedeu/models/attributes/stream_collection_test.rb |