module Simulacrum::Matchers
Custom RSpec matchers
Public Class Methods
fail_message(component, comparator)
click to toggle source
# File lib/simulacrum/matchers.rb, line 26 def self.fail_message(component, comparator) <<-eos The pixel change percentage (#{comparator.diff.delta}%) exceeded the maximum \ threshold of #{component.delta_threshold}%. Reference: #{component.reference_path} Candidate: #{component.candidate_path} Diff: #{component.diff_path} eos end
pending_message(component)
click to toggle source
# File lib/simulacrum/matchers.rb, line 37 def self.pending_message(component) <<-eos No reference image found! Candidate created: #{component.candidate_path} eos end