RSpec.describe Amakanize::AuthorName do
  let(:author_name) do
    described_class.new(raw)
  end

  describe "#to_s" do
    subject do
      author_name.to_s
    end

    {
      " 　ハノカゲ 　" => "ハノカゲ",
      "&lt;ハノカゲ&gt;" => "<ハノカゲ>",
      "ａｕｔｈｏｒ" => "author",
      "BNGI/PROJECTiM@S:原作" => "BNGI/PROJECTiM@S",
      "ハノカゲ　ほか" => "ハノカゲ",
      "バンダイナムコゲームス 原作" => "バンダイナムコゲームス",
      "ぽんかん(8)" => "ぽんかん8",
      "ぽんかん（８）" => "ぽんかん8",
      "ぽんかん8" => "ぽんかん8",
      "ぽんかん⑧" => "ぽんかん8",
      "渡 航" => "渡航",
      "渡　航" => "渡航",
      "漫画:ハノカゲ" => "ハノカゲ",
      "漫画:ハノカゲ" => "ハノカゲ",
    }.each do |key, value|
      context "with #{key.inspect}" do
        let(:raw) do
          key
        end

        it { is_expected.to eq value }
      end
    end
  end
end

RSpec.describe Amakanize::AuthorName do
  let(:author_name) do
    described_class.new(raw)
  end

  describe "#to_s" do
    subject do
      author_name.to_s
    end

    {
      " 　ハノカゲ 　" => "ハノカゲ",
      "&lt;ハノカゲ&gt;" => "<ハノカゲ>",
      "ａｕｔｈｏｒ" => "author",
      "BNGI/PROJECTiM@S:原作" => "BNGI/PROJECTiM@S",
      "ハノカゲ　ほか" => "ハノカゲ",
      "ハノカゲ:漫画" => "ハノカゲ",
      "バンダイナムコゲームス 原作" => "バンダイナムコゲームス",
      "ぽんかん(8)" => "ぽんかん8",
      "ぽんかん（８）" => "ぽんかん8",
      "ぽんかん8" => "ぽんかん8",
      "ぽんかん⑧" => "ぽんかん8",
      "渡 航" => "渡航",
      "渡　航" => "渡航",
      "漫画:ハノカゲ" => "ハノカゲ",
    }.each do |key, value|
      context "with #{key.inspect}" do
        let(:raw) do
          key
        end

        it { is_expected.to eq value }
      end
    end
  end
end

Fix author name spec test case
Fix author name spec test case
