# frozen_string_literal: true

RSpec.describe Magick::Enum, '#to_s' do
  it 'works' do
    enum = described_class.new(:foo, 42)
    expect(enum.to_s).to eq('foo')

    enum = described_class.new('foo', 42)
    expect(enum.to_s).to eq('foo')
  end
end
