Sha256: 3de7e815786346671365dedf7ced184636c4aa746dfb7816e7960ece90972eb2

Contents?: true

Size: 541 Bytes

Versions: 2

Compression:

Stored size: 541 Bytes

Contents

require 'helper'

require 'tagomatic/tag_normalizer'

class TestTagNormalizer < Test::Unit::TestCase
  context "A TagNormalizer" do
    setup do
      @tag_normalizer = Tagomatic::TagNormalizer.new
    end

    should "do something" do
      test_tags = {:a => 'the artist', :b => 'the album - ', :t => '. title track -  by lupo -'}
      result = @tag_normalizer.process(test_tags)
      assert_equal 'The Artist', result[:a]
      assert_equal 'The Album', result[:b]
      assert_equal 'Title Track By Lupo', result[:t]
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tagomatic-0.1.9 test/tagomatic/test_tag_normalizer.rb
tagomatic-0.1.8 test/tagomatic/test_tag_normalizer.rb