このコミットが含まれているのは:
2026-10-12 21:53:02 +09:00
コミット 7cf2978f5f
2個のファイルの変更、16行の追加、3行の削除
+5 -1
ファイルの表示
@@ -27,8 +27,12 @@ RSpec.describe 'Shared Tag and ExternalTag IDs', type: :model do
end
it "uses the current maximum after deleting earlier #{ resource } records" do
create(:tag, id: 100).destroy!
tag = create(:tag, id: 100)
TagName.where(tag_id: tag.id).update_all(tag_id: nil)
tag.destroy!
create(:external_tag, id: 200).destroy!
expect(Tag.unscoped.count).to eq(0)
expect(ExternalTag.unscoped.count).to eq(0)
expect(create_resource(resource).id).to eq(1)
end