# frozen_string_literal: true

RSpec.describe Magick::Image, '#morphology' do
  it 'works' do
    image = described_class.new(20, 20)
    kernel = Magick::KernelInfo.new('Octagon')

    Magick::MorphologyMethod.values do |method|
      result = image.morphology(method, 2, kernel)
      expect(result).to be_instance_of(described_class)
      expect(result).not_to be(image)
    end
  end
end
