Sha256: 62f6792a68bf32bfe4a9679e46b809a90db3deaeca7ff685c297c411d3bbd40b
Contents?: true
Size: 742 Bytes
Versions: 3
Compression:
Stored size: 742 Bytes
Contents
require_relative '../../../test_helper' require_relative '../../../../lib/vedeu/models/stream_collection' require_relative '../../../../lib/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: '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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.0.33 | test/lib/vedeu/models/stream_collection_test.rb |
vedeu-0.0.32 | test/lib/vedeu/models/stream_collection_test.rb |
vedeu-0.0.31 | test/lib/vedeu/models/stream_collection_test.rb |