Sha256: 91622fa3a1d5d7cc146d430d4e5489fd5aa0b0962e150df6ef013ccbec28f48a

Contents?: true

Size: 741 Bytes

Versions: 4

Compression:

Stored size: 741 Bytes

Contents

require 'test/unit'
require 'feed_tools'

class HelperTest < Test::Unit::TestCase
  def setup
    FeedTools.tidy_enabled = false
  end

  def test_escape_entities
  end

  def test_unescape_entities
  end
  
  def test_normalize_url
    assert_equal("http://slashdot.org/",
      FeedTools.normalize_url("slashdot.org"))
  end
  
  def test_sanitize_html
  end
  
  def test_tidy_html
    FeedTools.tidy_enabled = true
    unless FeedTools.tidy_enabled?
      puts "\nCould not test tidy support.  Libtidy couldn't be found."
    end
    
    FeedTools.tidy_enabled = false
  end
  
  def test_build_urn_uri
    assert_equal("urn:uuid:fa6d0b87-3f36-517d-b9b7-1349f8c3fc6b",
      FeedTools.build_urn_uri('http://sporkmonger.com/'))
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
feedtools-0.2.13 test/helper_test.rb
feedtools-0.2.15 test/helper_test.rb
feedtools-0.2.14 test/helper_test.rb
feedtools-0.2.16 test/helper_test.rb