summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2018-04-15 02:08:38 -0600
committerDan Allen <dan.j.allen@gmail.com>2018-04-15 02:08:38 -0600
commit41b3e781d585bcdc048bc3dcd2bc67b9b81ced5d (patch)
tree223c39c62ce676679432513f16a773111ab4c4c7 /test
parentc05be3c8975d065b80ca4c00f54232e4cb6145ee (diff)
rephrase warning message about using level 0 sections when the doctype is not book
Diffstat (limited to 'test')
-rw-r--r--test/blocks_test.rb2
-rw-r--r--test/sections_test.rb2
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