# frozen_string_literal: true

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

    expect { image.border(2, 2, 'red') }.not_to raise_error
    expect { image.border!(2, 2, 'red') }.not_to raise_error
    result = image.border(2, 2, 'red')
    expect(result).to be_instance_of(described_class)
    image.freeze
    expect { image.border!(2, 2, 'red') }.to raise_error(FrozenError)
  end
end
