summaryrefslogtreecommitdiff
path: root/spec/page_spec.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2020-05-07 23:42:02 -0600
committerGitHub <noreply@github.com>2020-05-07 23:42:02 -0600
commit95785d45fda1ed25e5252bf27542a90eca83d886 (patch)
tree7cded295232f7da477dc45d39366f2b4570e5c17 /spec/page_spec.rb
parent158dde7533fa96dbc6949ba789657340f1fc44c7 (diff)
drop unsupported versions of Ruby (Ruby < 2.5 and JRuby < 9.2) (PR #1682)
Diffstat (limited to 'spec/page_spec.rb')
-rw-r--r--spec/page_spec.rb20
1 files changed, 9 insertions, 11 deletions
diff --git a/spec/page_spec.rb b/spec/page_spec.rb
index 4f64ee03..a77c5dbe 100644
--- a/spec/page_spec.rb
+++ b/spec/page_spec.rb
@@ -903,19 +903,17 @@ describe 'Asciidoctor::PDF::Converter - Page' do
it 'should use the specified image format', visual: true do
source_file = (dest_file = fixture_file 'square') + '.svg'
- begin
- FileUtils.cp source_file, dest_file
- to_file = to_pdf_file <<~'EOS', 'page-background-image-format.pdf'
- = Document Title
- :page-background-image: image:square[format=svg]
+ FileUtils.cp source_file, dest_file
+ to_file = to_pdf_file <<~'EOS', 'page-background-image-format.pdf'
+ = Document Title
+ :page-background-image: image:square[format=svg]
- This page has a background image that is rather loud.
- EOS
+ This page has a background image that is rather loud.
+ EOS
- (expect to_file).to visually_match 'page-background-image-svg-scale-up.pdf'
- ensure
- File.unlink dest_file
- end
+ (expect to_file).to visually_match 'page-background-image-svg-scale-up.pdf'
+ ensure
+ File.unlink dest_file
end
end