# frozen_string_literal: true

RSpec.describe Magick::Image::Info, '#orientation' do
  it 'works' do
    info = described_class.new

    Magick::OrientationType.values.each do |v|
      expect { info.orientation = v }.not_to raise_error
      expect(info.orientation).to eq(v)
    end
    expect { info.orientation = nil }.to raise_error(TypeError)
  end
end
