summaryrefslogtreecommitdiff
path: root/test/sections_test.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2021-10-18 15:08:10 -0600
committerDan Allen <dan.j.allen@gmail.com>2021-10-18 15:12:54 -0600
commit87be17209d5b443882cc1b1a8ea590db651c8058 (patch)
treecc963175b7b366d748241370551f061b7cef37af /test/sections_test.rb
parent45525906421d99b11d8dde4209dafd28c800a543 (diff)
rename default branch
Diffstat (limited to 'test/sections_test.rb')
-rw-r--r--test/sections_test.rb28
1 files changed, 14 insertions, 14 deletions
diff --git a/test/sections_test.rb b/test/sections_test.rb
index c28e53b1..305ad163 100644
--- a/test/sections_test.rb
+++ b/test/sections_test.rb
@@ -1315,16 +1315,16 @@ context 'Sections' do
context 'Level offset' do
test 'should print error if standalone document is included without level offset' do
input = <<~'EOS'
- = Master Document
+ = Main Document
Doc Writer
- text in master
+ text in main document
// begin simulated include::[]
= Standalone Document
:author: Junior Writer
- text in standalone
+ text in standalone document
// end simulated include::[]
EOS
@@ -1337,10 +1337,10 @@ context 'Sections' do
test 'should add level offset to section level' do
input = <<~'EOS'
- = Master Document
+ = Main Document
Doc Writer
- Master document written by {author}.
+ Main document written by {author}.
:leveloffset: 1
@@ -1357,9 +1357,9 @@ context 'Sections' do
:leveloffset!:
- == Section in Master
+ == Section in Main
- Master section text.
+ Main section text.
EOS
output = nil
@@ -1368,16 +1368,16 @@ context 'Sections' do
assert_empty logger
end
- assert_match(/Master document written by Doc Writer/, output)
+ assert_match(/Main document written by Doc Writer/, output)
assert_match(/Standalone document written by Junior Writer/, output)
assert_xpath '//*[@class="sect1"]/h2[text() = "Standalone Document"]', output, 1
assert_xpath '//*[@class="sect2"]/h3[text() = "Section in Standalone"]', output, 1
- assert_xpath '//*[@class="sect1"]/h2[text() = "Section in Master"]', output, 1
+ assert_xpath '//*[@class="sect1"]/h2[text() = "Section in Main"]', output, 1
end
test 'level offset should be added to discrete heading' do
input = <<~'EOS'
- = Master Document
+ = Main Document
Doc Writer
:leveloffset: 1
@@ -1392,10 +1392,10 @@ context 'Sections' do
test 'should be able to reset level offset' do
input = <<~'EOS'
- = Master Document
+ = Main Document
Doc Writer
- Master preamble.
+ Main preamble.
:leveloffset: 1
@@ -1415,10 +1415,10 @@ context 'Sections' do
test 'should add relative offset value to current leveloffset' do
input = <<~'EOS'
- = Master Document
+ = Main Document
Doc Writer
- Master preamble.
+ Main preamble.
:leveloffset: 1