diff options
Diffstat (limited to 'spec/footnote_spec.rb')
| -rw-r--r-- | spec/footnote_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/footnote_spec.rb b/spec/footnote_spec.rb index 3d530122..d8f73079 100644 --- a/spec/footnote_spec.rb +++ b/spec/footnote_spec.rb @@ -20,14 +20,14 @@ describe 'Asciidoctor::PDF::Converter - Footnote' do (expect text[2][:font_size]).to be < text[1][:font_size] (expect text[3][:font_color]).to eql '428BCA' # superscript group - (expect (text.slice 2, 3).map {|it| [it[:y], it[:font_size]] }.uniq).to have_size 1 + (expect (text.slice 2, 3).uniq {|it| [it[:y], it[:font_size]] }).to have_size 1 # footnote item (expect (strings.slice 6, 3).join).to eql '[1] More about that thing.' (expect text[6][:y]).to be < text[5][:y] (expect text[6][:y]).to be < 60 (expect text[6][:page_number]).to be 1 (expect text[6][:font_size]).to be 8 - (expect (text.slice 6, 3).map {|it| [it[:y], it[:font_size]] }.uniq).to have_size 1 + (expect (text.slice 6, 3).uniq {|it| [it[:y], it[:font_size]] }).to have_size 1 # next chapter (expect text[9][:page_number]).to be 2 end @@ -134,7 +134,7 @@ describe 'Asciidoctor::PDF::Converter - Footnote' do (expect text[2][:font_size]).to be < text[1][:font_size] (expect text[3][:font_color]).to eql '428BCA' # superscript group - (expect (text.slice 2, 3).map {|it| [it[:y], it[:font_size]] }.uniq).to have_size 1 + (expect (text.slice 2, 3).uniq {|it| [it[:y], it[:font_size]] }).to have_size 1 (expect text[2][:font_size]).to be < text[1][:font_size] # footnote item (expect (pdf.find_text 'Section B')[0][:order]).to be < (pdf.find_text '] More about that thing.')[0][:order] |
