diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2012-12-13 04:23:36 -0700 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2012-12-13 04:29:07 -0700 |
| commit | b4e0f2a9014d9667e6104a5c44bab1744a77f252 (patch) | |
| tree | c84027bf5c6f77469ad4fb9a35c66d8749ecf777 /test/text_test.rb | |
| parent | 01a771e6280447dc2609de85a03ee346a77a64dd (diff) | |
make header/footer optional, set intrinsic attributes
- make header/footer optional using option :header_footer
- set intrinsic attributes such as date/time, doctype and asciidoctor version
- expose doctitle and title accessors in Document (preferred over header)
- fill in the template for Document more completely to be consistent w/ AsciiDoc
Diffstat (limited to 'test/text_test.rb')
| -rw-r--r-- | test/text_test.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/text_test.rb b/test/text_test.rb index 4616db9e..f892398a 100644 --- a/test/text_test.rb +++ b/test/text_test.rb @@ -16,7 +16,8 @@ context "Text" do end test "separator" do - assert_xpath "//hr", render_string("This is separated.\n\n'''\n\n...from this!"), 1 + # for some reason, the html enclosure breaks the xpath //*[@id='content']//hr + assert_xpath "//*[@id='content']//hr", render_string("This is separated.\n\n'''\n\n...from this!"), 1 end test "emphasized text" do |
