Sha256: 99bc22b7f944cd243996e0c5441d1bd70de38cc48673f60300828603d83ecc23
Contents?: true
Size: 563 Bytes
Versions: 2
Compression:
Stored size: 563 Bytes
Contents
require 'helper' require 'tagomatic/url_remover' class TestUrlRemover < Test::Unit::TestCase context "A UrlRemover" do setup do @url_remover = Tagomatic::UrlRemover.new end should "remove URLs from tag values" do test_tags = {:a => 'the artist', :b => 'the album - www.albumses.net', :t => 'title track - www.nowhere.org by lupo'} result = @url_remover.process(test_tags) assert_equal 'the artist', result[:a] assert_equal 'the album - ', result[:b] assert_equal 'title track - ', result[:t] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tagomatic-0.1.9 | test/tagomatic/test_url_remover.rb |
tagomatic-0.1.8 | test/tagomatic/test_url_remover.rb |