Sha256: 06c7eb85609c0ff44d35299a1358affae0d853e864a5957ad981a5e2b26a0f1a
Contents?: true
Size: 870 Bytes
Versions: 4
Compression:
Stored size: 870 Bytes
Contents
# encoding: utf-8 require 'test_helper' require 'review/htmltoc' class HTMLTocTest < Test::Unit::TestCase include ReVIEW def setup end def teardown end def test_tocfilename toc = HTMLToc.new("/var/tmp") assert_equal "/var/tmp/toc-html.txt", toc.tocfilename end def test_encode_args toc = HTMLToc.new("/var/tmp") assert_equal "chaptype=pre", toc.encode_args({:chaptype => "pre"}) assert_equal "force_include=true,chaptype=body,properties=foo", toc.encode_args({:force_include => true, :chaptype => "body", "properties"=>"foo"}) end def test_decode_args toc = HTMLToc.new("/var/tmp") assert_equal({:chaptype => "pre"}, toc.decode_args("chaptype=pre")) assert_equal({:force_include => "true", :chaptype => "body",:properties=>"foo"}, toc.decode_args("force_include=true,chaptype=body,properties=foo")) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
review-2.3.0 | test/test_htmltoc.rb |
review-2.2.0 | test/test_htmltoc.rb |
review-2.1.0 | test/test_htmltoc.rb |
review-2.0.0 | test/test_htmltoc.rb |