Sha256: 84dc113c257a17f926ed5b62bbf46f63cc2b4152b4ab0b78ac96a9aff99c0dbd
Contents?: true
Size: 1.1 KB
Versions: 4
Compression:
Stored size: 1.1 KB
Contents
require 'test_helper' context "Headers" do test "main header" do assert_xpath "//h1", render_string("My Title\n=======") end context "level 1" do test "with multiline syntax" do assert_xpath "//h2", render_string("My Section\n-----------") end test "with single line syntax" do assert_xpath "//h2", render_string("== My Title") end end context "level 2" do test "with multiline syntax" do assert_xpath "//h3", render_string("My Section\n~~~~~~~~~~~") end test "with single line syntax" do assert_xpath "//h3", render_string("=== My Title") end end context "level 3" do test "with multiline syntax" do assert_xpath "//h4", render_string("My Section\n^^^^^^^^^^") end test "with single line syntax" do assert_xpath "//h4", render_string("==== My Title") end end context "level 4" do test "with multiline syntax" do assert_xpath "//h5", render_string("My Section\n++++++++++") end test "with single line syntax" do assert_xpath "//h5", render_string("===== My Title") end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
asciidoctor-0.0.4 | test/headers_test.rb |
asciidoctor-0.0.3 | test/headers_test.rb |
asciidoctor-0.0.2 | test/headers_test.rb |
asciidoctor-0.0.1 | test/headers_test.rb |