Sha256: 520bf4e9083e7bbaf0e90d3bb4194c73a025c3b880184d407185914a25126027
Contents?: true
Size: 514 Bytes
Versions: 10
Compression:
Stored size: 514 Bytes
Contents
require 'spec_helper' require 'approvals/reporters' describe Approvals::Reporters::ImageMagickReporter do subject { Approvals::Reporters::ImageMagickReporter.instance } it "creates the appropriate command" do result = subject.create_command_line("spec/fixtures/one.png", "spec/fixtures/two.png") expected = "compare spec/fixtures/one.png spec/fixtures/two.png -compose Src x:" if result != expected system(result) system(expected) end expect(result).to eq(expected) end end
Version data entries
10 entries across 10 versions & 2 rubygems