Sha256: 4441d87c4dae19da71ca19db467ed2e3c0558ee9fe9723e07bceda6e43e19617
Contents?: true
Size: 709 Bytes
Versions: 1
Compression:
Stored size: 709 Bytes
Contents
require 'test_helper' module Vedeu describe LineCollection do let(:interface) { Interface.new(attributes) } describe '#coerce' do it 'returns an empty collection when there are no lines' do Interface.new({ lines: [] }).lines.must_equal([]) end it 'contains a single Line object when there is a single line' do Interface.new({ lines: { streams: { text: 'some text' } } }) .lines.size.must_equal(1) end it 'contains multiple Line objects when there are multiple lines' do Interface.new({ lines: [ { text: 'some text' }, { text: 'some more text' } ] }).lines.size.must_equal(2) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.1.10 | test/lib/vedeu/models/attributes/line_collection_test.rb |