Sha256: f8fec264d03f0c4bfbbb70efdfbd6f7d23eb05d2233c40d4885953e09e7a135a
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
require 'spec_helper' describe M3u8::MediaItem do it 'should provide m3u8 format representation' do hash = { type: 'AUDIO', group: 'audio-lo', language: 'fre', name: 'Francais', autoselect: true, default: false, uri: 'frelo/prog_index.m3u8' } item = M3u8::MediaItem.new(hash) output = item.to_s expected = '#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-lo",LANGUAGE="fre",' \ 'NAME="Francais",AUTOSELECT=YES,DEFAULT=NO,' \ 'URI="frelo/prog_index.m3u8"' expect(output).to eq expected hash = { type: 'AUDIO', group: 'audio-lo', language: 'fre', assoc_language: 'spoken', name: 'Francais', autoselect: true, default: false, forced: true, uri: 'frelo/prog_index.m3u8' } item = M3u8::MediaItem.new(hash) output = item.to_s expected = '#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-lo",LANGUAGE="fre",' \ 'ASSOC-LANGUAGE="spoken",NAME="Francais",AUTOSELECT=YES,' \ 'DEFAULT=NO,URI="frelo/prog_index.m3u8",FORCED=YES' expect(output).to eq expected end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
m3u8-0.4.0 | spec/media_item_spec.rb |