class PdfMatcher::Testing::Matcher::MatchPdf
Public Class Methods
new(expected_pdf, output_diff)
click to toggle source
# File lib/pdf_matcher/testing/matcher.rb, line 16 def initialize(expected_pdf, output_diff) @expected_pdf = expected_pdf @output_diff = output_diff end
Public Instance Methods
description()
click to toggle source
# File lib/pdf_matcher/testing/matcher.rb, line 29 def description 'match the expected pdf' end
failure_message()
click to toggle source
# File lib/pdf_matcher/testing/matcher.rb, line 25 def failure_message FailureMessage.build(@output_diff) end
matches?(actual_pdf)
click to toggle source
# File lib/pdf_matcher/testing/matcher.rb, line 21 def matches?(actual_pdf) PdfMatcher.match?(@expected_pdf, actual_pdf, output_diff: @output_diff) end