Sha256: 2944743df6b48977c5daeca480af9597bb42362067b48b6fb4efe7bb8afc5be0

Contents?: true

Size: 459 Bytes

Versions: 1

Compression:

Stored size: 459 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.2.0 test/lib/dmapparser/tag_test.rb