blob: 886145d7550491bbab3a774bb2352ceae38b74bd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
require 'test_helper'
class DocumentTest < Test::Unit::TestCase
# setup for test
def setup
@doc = example_document(:asciidoc_index)
end
def test_title
assert_equal "AsciiDoc Home Page", @doc.title
end
def test_with_no_title
d = Asciidoctor::Document.new(["Snorf"])
assert_nil d.title
end
end
|