File tree Expand file tree Collapse file tree 3 files changed +31
-0
lines changed
Expand file tree Collapse file tree 3 files changed +31
-0
lines changed Original file line number Diff line number Diff line change 2727# ## 以下、Dojo 情報まとめ ###
2828# ## (dojos.yaml の追加順) ###
2929
30+ # 播磨科学公園都市(兵庫県上郡町)
31+ # - dojo_id: 343
32+ # name: ???
33+ # group_id: ???
34+ # url: https://codeclub.org/ja/clubs/1700a138-2909-4e4e-9e75-88ebcbbbc55a
35+
3036# 砧(東京都世田谷区)- connpass の個人アカウントのため登録できない。グループアカウントにする必要がある。
3137# TODO: グループ化されたら dojos.yamlのurlも合わせて更新
3238# - dojo_id: 342
Original file line number Diff line number Diff line change 33453345 description : 猪名川町で毎月開催
33463346 tags :
33473347 - Scratch
3348+ - id : 343
3349+ order : ' 284815'
3350+ created_at : ' 2025-07-28'
3351+ name : 播磨科学公園都市
3352+ prefecture_id : 28
3353+ logo : " /img/dojos/default.webp"
3354+ url : https://koto-ictclub.net/dojo/
3355+ description : 赤穂郡上郡町で毎月開催
3356+ tags :
3357+ - Python
3358+ - Unity
3359+ - ラズベリーパイ
3360+ - HTML
3361+ - CSS
33483362- id : 35
33493363 order : ' 292010'
33503364 created_at : ' 2014-10-26'
Original file line number Diff line number Diff line change 195195 end
196196 end
197197 end
198+
199+ describe 'YAML data integrity' do
200+ it 'has no duplicate IDs' do
201+ yaml_data = Dojo . load_attributes_from_yaml
202+ ids = yaml_data . map { |dojo | dojo [ 'id' ] }
203+ duplicate_ids = ids . select { |id | ids . count ( id ) > 1 } . uniq
204+
205+ expect ( duplicate_ids ) . to be_empty ,
206+ "重複しているID: #{ duplicate_ids . join ( ', ' ) } "
207+ end
208+ end
198209end
You can’t perform that action at this time.
0 commit comments