Skip to content

Commit

Permalink
Fix spec to work with Mac platform with newer version of ImageMagick
Browse files Browse the repository at this point in the history
  • Loading branch information
willkoehler committed Feb 25, 2020
1 parent 70c16de commit 30c5cb8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/grover_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@
HTML
end

# For some reason, the Mac platform results in a weird page height (not double the A4 width)
if /darwin/ =~ RUBY_PLATFORM
it { expect(pdf_reader.pages.first.attributes).to include(MediaBox: [0, 0, 841.91998, 1188]) }
else
it { expect(pdf_reader.pages.first.attributes).to include(MediaBox: [0, 0, 841.91998, 1189.91992]) }
it do
# For some reason, the Mac platform results in a weird page height (not double the A4 width)
expect(pdf_reader.pages.first.attributes).
to include(MediaBox: [0, 0, 841.91998, 1188]). # Mac platform with older ImageMagick
or include(MediaBox: [0, 0, 841.91998, 1189.91992]) # All others
end
end

Expand Down

0 comments on commit 30c5cb8

Please sign in to comment.