Sha256: 03e8886af77673b54ee23f67263ec696715167f8a230cc020307ae580a973d73
Contents?: true
Size: 353 Bytes
Versions: 2
Compression:
Stored size: 353 Bytes
Contents
require 'spec_helper' describe do let(:test_class) { Class.new { extend M3u8 } } it 'should parse attributes to hash' do line = %(TEST-ID="Help",URI="http://test",ID=33) hash = test_class.parse_attributes line expect(hash['TEST-ID']).to eq 'Help' expect(hash['URI']).to eq 'http://test' expect(hash['ID']).to eq '33' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
m3u8-0.5.1 | spec/m3u8_spec.rb |
m3u8-0.5.0 | spec/m3u8_spec.rb |