# frozen_string_literal: true

RSpec.describe Magick::Image, '#minify' do
  it 'works' do
    image = described_class.new(20, 20)

    result = image.minify
    expect(result).to be_instance_of(described_class)
    expect(result).not_to be(image)

    result = image.minify!
    expect(result).to be(image)
  end
end
