spec/lib/m3u8/map_item_spec.rb in m3u8-0.7.0 vs spec/lib/m3u8/map_item_spec.rb in m3u8-0.7.1
- old
+ new
@@ -1,14 +1,11 @@
+# frozen_string_literal: true
require 'spec_helper'
describe M3u8::MapItem do
it 'should provide m3u8 format representation' do
hash = { uri: 'frelo/prog_index.m3u8',
- byterange: {
- length: 4500,
- start: 600
- }
- }
+ byterange: { length: 4500, start: 600 } }
item = M3u8::MapItem.new(hash)
output = item.to_s
expected = '#EXT-X-MAP:URI="frelo/prog_index.m3u8",' \
'BYTERANGE="4500@600"'
expect(output).to eq expected