このコミットが含まれているのは:
2026-09-24 08:46:22 +09:00
コミット b04f3e698d
6個のファイルの変更、58行の追加、13行の削除
+5 -3
ファイルの表示
@@ -396,7 +396,9 @@ RSpec.describe 'Tags API', type: :request do
end
it 'prefers Tag when Tag and ExternalTag have the same id' do
internal = create(:tag, name: 'internal_collision')
internal = create(
:tag,
tag_name: create(:tag_name, name: 'internal_collision'))
create(
:external_tag,
id: internal.id,
@@ -407,8 +409,8 @@ RSpec.describe 'Tags API', type: :request do
expect(response).to have_http_status(:ok)
expect(json).to include(
'id' => internal.id,
'name' => 'internal_collision')
expect(json.fetch('category')).not_to eq('nico')
'name' => 'internal_collision',
'category' => internal.category)
end
end