このコミットが含まれているのは:
@@ -898,22 +898,22 @@ RSpec.describe 'Gekanator learning API', type: :request do
|
||||
|
||||
describe 'GET /gekanator/questions' do
|
||||
it 'omits questions for deprecated tags' do
|
||||
active_tag = create(:tag, name: 'active_question_tag', category: :general)
|
||||
active_tag = create(:tag, primary_name: 'active_question_tag', category: :general)
|
||||
deprecated_tag = create(:tag,
|
||||
name: 'deprecated_question_tag',
|
||||
primary_name: 'deprecated_question_tag',
|
||||
category: :general,
|
||||
deprecated_at: Time.current)
|
||||
|
||||
[active_tag, deprecated_tag].each do |question_tag|
|
||||
GekanatorQuestion.create!(
|
||||
text: "#{ question_tag.name }?",
|
||||
text: "#{ primary_tag_name_for(question_tag, 'ja').name }?",
|
||||
kind: 'tag',
|
||||
source: 'admin_curated',
|
||||
status: 'accepted',
|
||||
priority_weight: 1.0,
|
||||
condition: {
|
||||
type: 'tag',
|
||||
key: "#{ question_tag.category }:#{ question_tag.name }"
|
||||
key: "#{ question_tag.category }:#{ primary_tag_name_for(question_tag, 'ja').name }"
|
||||
},
|
||||
created_by: admin
|
||||
)
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする