Sha256: bada4aa08a97fcf0602afe05f41fb95dacd3e88bcd346865961ca3a3172bff33

Contents?: true

Size: 583 Bytes

Versions: 9

Compression:

Stored size: 583 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
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
feedtools-0.2.12 test/helper_test.rb
feedtools-0.2.11 test/helper_test.rb
feedtools-0.2.10 test/helper_test.rb
feedtools-0.2.5 test/helper_test.rb
feedtools-0.2.4 test/helper_test.rb
feedtools-0.2.8 test/helper_test.rb
feedtools-0.2.7 test/helper_test.rb
feedtools-0.2.6 test/helper_test.rb
feedtools-0.2.9 test/helper_test.rb