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

Version Path
approvals-0.0.26 spec/reporters/image_magick_reporter_spec.rb
approvals-0.0.25 spec/reporters/image_magick_reporter_spec.rb
approvals-0.0.24 spec/reporters/image_magick_reporter_spec.rb
br-approvals-0.0.22 spec/reporters/image_magick_reporter_spec.rb
approvals-0.0.22 spec/reporters/image_magick_reporter_spec.rb
approvals-0.0.21 spec/reporters/image_magick_reporter_spec.rb
approvals-0.0.20 spec/reporters/image_magick_reporter_spec.rb
approvals-0.0.19 spec/reporters/image_magick_reporter_spec.rb
approvals-0.0.18 spec/reporters/image_magick_reporter_spec.rb
approvals-0.0.17 spec/reporters/image_magick_reporter_spec.rb