Sha256: 77947c1086294393fec09ff6040803c2a0446c9aae6e6d117fbe9a856422158a
Contents?: true
Size: 919 Bytes
Versions: 1
Compression:
Stored size: 919 Bytes
Contents
require File.expand_path('../../test_helper', __FILE__) class HtmlHelper < Test::Unit::TestCase include Main::HtmlHelpers test "test" do assert_equal "<x></x>", html("<x>") end test "markdown pre" do assert_equal html("<pre format=markdown>hi</pre>"), "<p>hi</p>" end test "markdown" do assert_equal html("<markdown>hi</markdown>"), "<p>hi</p>" assert_equal html("<markdown>hi</markdown>\n"), "<p>hi</p>" assert_equal html(" \n <markdown>hi</markdown> \n "), "<p>hi</p>" end test "stupidity" do assert_equal "<p>hi</p>", html("<p><pre format=markdown>hi</pre>") assert_equal "<p>hi</p>", html("<p></p><pre format=markdown>hi</pre><p></p>") end test "textile" do assert_equal html('<textile>"ab":/cd</textile>'), '<p><a href="/cd">ab</a></p>' assert_equal "<h2>Hello</h2>\n<p>Whats up?</p>", html("<textile>\nh2. Hello\n\nWhats up?\n</textile>") end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
aura-0.0.1.pre10 | test/unit/html_helper_test.rb |