spec/media_item_spec.rb in m3u8-0.4.0 vs spec/media_item_spec.rb in m3u8-0.5.0

- old
+ new

@@ -1,19 +1,19 @@ require 'spec_helper' describe M3u8::MediaItem do it 'should provide m3u8 format representation' do - hash = { type: 'AUDIO', group: 'audio-lo', language: 'fre', + hash = { type: 'AUDIO', group_id: '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', + hash = { type: 'AUDIO', group_id: '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",' \