Sha256: 858f22e5a7a6dd5c74a3e12e8bfa5ae86e947b4503e1a1ed99ac0b8532927443

Contents?: true

Size: 461 Bytes

Versions: 1

Compression:

Stored size: 461 Bytes

Contents

require_relative '../../test_helper'

describe DMAPParser::Tag do
  it 'should return the correct value' do
    subject = DMAPParser::Tag.new(:minm, 'Test thing')
    subject.value.must_equal 'Test thing'
    subject.type.must_equal DMAPParser::TagDefinition[:minm]
  end
  
  it 'should be recognizable as a tag' do
    subject = DMAPParser::Tag.new(:minm, 'Test thing')
    subject.to_s.must_equal('#<DMAPParser::Tag minm (dmap.itemname: string)>')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dmapparser-0.1.0 test/lib/dmapparser/tag_test.rb