# frozen_string_literal: true

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

    result = image.color_histogram
    expect(result).to be_instance_of(Hash)

    image.class_type = Magick::PseudoClass
    result = image.color_histogram
    expect(image.class_type).to eq(Magick::PseudoClass)
    expect(result).to be_instance_of(Hash)
  end
end
