Module: PdfSpec::Matchers

Defined in:
lib/pdf_spec/matchers.rb

Overview

:nodoc:

Defined Under Namespace

Classes: IdenticalPdfs

Instance Method Summary collapse

Instance Method Details

#have_same_pdf_appearance_as(expected) ⇒ Object

Compares the pixel by pixel appearance of two strings of PDF data

Parameters:

  • expected (String)

    The expected PDF file contents



44
45
46
# File 'lib/pdf_spec/matchers.rb', line 44

def have_same_pdf_appearance_as(expected)
  IdenticalPdfs.new(expected)
end