diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/blocks_test.rb | 2 | ||||
| -rw-r--r-- | test/sections_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/blocks_test.rb b/test/blocks_test.rb index 7a5aecac..30fd0f59 100644 --- a/test/blocks_test.rb +++ b/test/blocks_test.rb @@ -1638,7 +1638,7 @@ section paragraph assert_xpath '//*[@id="content"]/h1[text()="Section Title"]', output, 1 assert_xpath '//*[@class="paragraph"]', output, 1 assert_xpath '//*[@class="paragraph"]/*[@class="title"][text()="Block title"]', output, 1 - assert_message @logger, :ERROR, '<stdin>: line 2: only book doctypes can contain level 0 sections', Hash + assert_message @logger, :ERROR, '<stdin>: line 2: level 0 sections can only be used when doctype is book', Hash end test 'block title above document title gets carried over to first block in first section if no preamble' do diff --git a/test/sections_test.rb b/test/sections_test.rb index 0329e182..39a988b7 100644 --- a/test/sections_test.rb +++ b/test/sections_test.rb @@ -868,7 +868,7 @@ text in standalone using_memory_logger do |logger| render_string input - assert_message logger, :ERROR, '<stdin>: line 7: only book doctypes can contain level 0 sections', Hash + assert_message logger, :ERROR, '<stdin>: line 7: level 0 sections can only be used when doctype is book', Hash end end |
