Sha256: ed10cc74a2222fa7ed7c8bd37ce6b8fc851075ab5296c76f80170a26a12c4e1f
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 Bytes
Contents
module Gatling class Comparison attr_accessor :diff_image, :actual_image, :expected_image def initialize actual_image, expected_image @actual_image = actual_image @expected_image = expected_image @comparison = @actual_image.image.compare_channel(@expected_image.image, Magick::MeanAbsoluteErrorMetric) @match = @comparison[1] == 0.0 if !@matches @diff_image =Gatling::Image.new(@comparison.first, @expected_image.file_name) end end def matches? @match end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gatling-1.0.8 | lib/gatling/comparison.rb |