summaryrefslogtreecommitdiff
path: root/spec/paragraph_spec.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2019-06-05 23:46:38 -0600
committerDan Allen <dan.j.allen@gmail.com>2019-06-05 23:46:38 -0600
commit3f2a5461bfa41523127af235defa1c03032366e6 (patch)
treea1bbe2f6b0c5d47f3f9aacf1f80c698fbe8e9534 /spec/paragraph_spec.rb
parentd5e87291b45a4911b97781e1f241cd16fe185135 (diff)
pass string as positional argument instead of named argument when only option [skip ci]
Diffstat (limited to 'spec/paragraph_spec.rb')
-rw-r--r--spec/paragraph_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/paragraph_spec.rb b/spec/paragraph_spec.rb
index 72835dbe..33176a4b 100644
--- a/spec/paragraph_spec.rb
+++ b/spec/paragraph_spec.rb
@@ -43,7 +43,7 @@ describe 'Asciidoctor::PDF::Converter - Paragraph' do
(expect line_spacing[0]).to eql 15.78
(expect pdf.text[0][:x]).to be > pdf.text[1][:x]
(expect pdf.text[2][:x]).to be > pdf.text[3][:x]
- list_item_text = (pdf.find_text string: 'list item')[0]
+ list_item_text = (pdf.find_text 'list item')[0]
(expect (pdf.text[3][:y] - list_item_text[:y]).round 2).to eql 27.78
end