Sha256: 2ed36906a7b2a28a729877cd3098b6df406e954e11a0ceae931a80129ea71156
Contents?: true
Size: 601 Bytes
Versions: 1
Compression:
Stored size: 601 Bytes
Contents
module Janus module Command class Validate def initialize(configuration) @configuration = configuration end def execute @configuration.tests.each do |test| validate_screenshot(test) end end def validate_screenshot(test) original = Janus::Screenshot.load(test, path: 'output') fresh = Janus::Screenshot.capture(test, username: @configuration.username, access_key: @configuration.access_key) raise "#{test.name}: Screenshots did not match!" unless original.image == fresh.image end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
janus-cli-0.1.0 | lib/janus/command/validate.rb |