このコミットが含まれているのは:
2026-09-21 07:16:14 +09:00
コミット 57c141e515
5個のファイルの変更306行の追加38行の削除
+1 -2
ファイルの表示
@@ -8,8 +8,7 @@ RSpec.describe 'nico:sync' do
end
def create_tag!(name, category:)
tn = TagName.find_undiscard_or_create_by!(name: name.to_s.strip)
Tag.find_undiscard_or_create_by!(tag_name_id: tn.id) { |t| t.category = category }
Tag.find_or_create_by_tag_name!(name, category:)
end
def link_nico_to_tag!(nico_tag, tag)