Sha256: 9ebea5084b338cf2b794d4d560e0c1718241cf1e50e09e6020a1db05071cbdef
Contents?: true
Size: 521 Bytes
Versions: 5
Compression:
Stored size: 521 Bytes
Contents
require 'spec_helper' describe M3u8::SegmentItem do it 'should initialize with hash' do hash = { duration: 10.991, segment: 'test.ts' } item = M3u8::SegmentItem.new(hash) expect(item.duration).to eq 10.991 expect(item.segment).to eq 'test.ts' end it 'should provide m3u8 format representation' do hash = { duration: 10.991, segment: 'test.ts' } item = M3u8::SegmentItem.new(hash) output = item.to_s expected = "#EXTINF:10.991,\ntest.ts" expect(output).to eq expected end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
m3u8-0.3.2 | spec/segment_item_spec.rb |
m3u8-0.3.1 | spec/segment_item_spec.rb |
m3u8-0.3.0 | spec/segment_item_spec.rb |
m3u8-0.2.1 | spec/segment_item_spec.rb |
m3u8-0.2.0 | spec/segment_item_spec.rb |