summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2022-04-12 02:38:19 -0600
committerDan Allen <dan.j.allen@gmail.com>2022-04-12 02:38:19 -0600
commit147aba4118d00a780376140729ad52fadaa340f2 (patch)
tree52eaf7e2cdb60f070cf4375dbbdad76fcf26a26f
parent6e7a7c97bdf43b818765d59b03d2c1e9e6104125 (diff)
fix lint errors in tests
-rw-r--r--spec/list_spec.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/spec/list_spec.rb b/spec/list_spec.rb
index a780b03e..71498046 100644
--- a/spec/list_spec.rb
+++ b/spec/list_spec.rb
@@ -1177,7 +1177,6 @@ describe 'Asciidoctor::PDF::Converter - List' do
****
EOS
- pdf = to_pdf input, pdf_theme: pdf_theme, analyze: true
horizontal_lines = (to_pdf input, pdf_theme: pdf_theme, analyze: :line).lines
.select {|it| it[:from][:y] == it[:to][:y] }.sort_by {|it| -it[:from][:y] }
(expect horizontal_lines).to have_size 4
@@ -1201,7 +1200,6 @@ describe 'Asciidoctor::PDF::Converter - List' do
****
EOS
- pdf = to_pdf input, pdf_theme: pdf_theme, analyze: true
horizontal_lines = (to_pdf input, pdf_theme: pdf_theme, analyze: :line).lines
.select {|it| it[:from][:y] == it[:to][:y] }.sort_by {|it| -it[:from][:y] }
(expect horizontal_lines).to have_size 4
@@ -1231,14 +1229,13 @@ describe 'Asciidoctor::PDF::Converter - List' do
****
EOS
- pdf = to_pdf input, pdf_theme: pdf_theme, analyze: true, debug: true
horizontal_lines = (to_pdf input, pdf_theme: pdf_theme, analyze: :line).lines
.select {|it| it[:from][:y] == it[:to][:y] }.sort_by {|it| -it[:from][:y] }
(expect horizontal_lines).to have_size 6
item_spacing = horizontal_lines[1][:from][:y] - horizontal_lines[2][:from][:y]
- (expect item_spacing.to_f).to eql 18.0 # FIXME: this should only be 6.0
spacing_below_list = horizontal_lines[3][:from][:y] - horizontal_lines[4][:from][:y]
- (expect spacing_below_list.to_f).to eql 24.0 # FIXME: this should only be 12.0
+ (expect item_spacing.to_f).to eql 18.0 # FIXME: ideally, this should be 12.0
+ (expect spacing_below_list.to_f).to eql 24.0 # FIXME: ideally, this should be 12.0
end
end