# frozen_string_literal: true

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

    result = image.color_point(0, 0, 'red')
    expect(result).to be_instance_of(described_class)
    expect(result).not_to be(image)

    pixel = Magick::Pixel.new(Magick::QuantumRange)
    expect { image.color_point(0, 0, pixel) }.not_to raise_error
  end
end
