このコミットが含まれているのは:
@@ -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
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする