Sha256: e7a7b745fd963e477d9bf3891877df7cba1f2a386dc722a70d1db96fb825ce46

Contents?: true

Size: 501 Bytes

Versions: 2

Compression:

Stored size: 501 Bytes

Contents

require_relative '../../test_helper'

describe DMAPParser::TagContainer do
  it 'should respond to known tags' do
    subject = DMAPParser::TagContainer.new(:mcon,
                                           [DMAPParser::Tag.new(:minm, 1337)])
    subject.respond_to?(:unknown).must_equal false
    subject.respond_to?(:minm).must_equal true
    subject.minm.must_equal 1337
    subject.unknown.must_equal nil
    subject.inspect.must_include('minm')
    subject.inspect.must_include('1337')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dmapparser-0.2.0 test/lib/dmapparser/tag_container_test.rb
dmapparser-0.1.0 test/lib/dmapparser/tag_container_test.rb