summaryrefslogtreecommitdiff
path: root/spec/section_spec.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2020-08-24 23:59:20 -0600
committerDan Allen <dan.j.allen@gmail.com>2020-08-25 01:29:50 -0600
commita1a3f2e37d01486079f12a176c6a6cd642bdc142 (patch)
tree984e1d0d0aabbcbe648a52049578491391bdd5d1 /spec/section_spec.rb
parentd43090fe5368f638f24ed0c4baa31fd79f0f3624 (diff)
consistently use "be" matcher to assert page number
Diffstat (limited to 'spec/section_spec.rb')
-rw-r--r--spec/section_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/section_spec.rb b/spec/section_spec.rb
index 29370697..eee7df4e 100644
--- a/spec/section_spec.rb
+++ b/spec/section_spec.rb
@@ -571,10 +571,10 @@ describe 'Asciidoctor::PDF::Converter - Section' do
(expect chapter_texts).to have_size 2
chapter_text = chapter_texts[0]
(expect chapter_text[:string]).to eql 'Chapter'
- (expect chapter_text[:page_number]).to eql 3
+ (expect chapter_text[:page_number]).to be 3
appendix_text = chapter_texts[1]
(expect appendix_text[:string]).to eql 'Appendix A: Details'
- (expect appendix_text[:page_number]).to eql 4
+ (expect appendix_text[:page_number]).to be 4
end
it 'should not promote anonymous preface in book doctype to preface section if preface-title attribute is not set' do