Sha256: 8b791bd8a972a01a5431b261f08f1c726caf5b1c86cd2685df0d0b60fce374b8

Contents?: true

Size: 610 Bytes

Versions: 1

Compression:

Stored size: 610 Bytes

Contents

require 'rubygems'
require 'test/unit'

$LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')

require 'uv'

class UvTest < Test::Unit::TestCase
  def test_parses_blank
    assert_equal %(<pre class="mac_classic"></pre>), Uv.parse('', 'xhtml', 'css')
  end

  def test_debugs
    assert_kind_of Textpow::DebugProcessor, Uv.debug('', 'css')
  end

  def test_find_syntaxes_by_ext
    assert_instance_of Array, Uv.find_syntaxes_by_ext("css")
    assert_instance_of Textpow::SyntaxNode, Uv.find_syntaxes_by_ext("css").first
    assert_equal "CSS", Uv.find_syntaxes_by_ext("css").first.name
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
uv-0.0.7.2 test/test_uv.rb