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 27
27
# ## 以下、Dojo 情報まとめ ###
28
28
# ## (dojos.yaml の追加順) ###
29
29
30
+ # 播磨科学公園都市(兵庫県上郡町)
31
+ # - dojo_id: 343
32
+ # name: ???
33
+ # group_id: ???
34
+ # url: https://codeclub.org/ja/clubs/1700a138-2909-4e4e-9e75-88ebcbbbc55a
35
+
30
36
# 砧(東京都世田谷区)- connpass の個人アカウントのため登録できない。グループアカウントにする必要がある。
31
37
# TODO: グループ化されたら dojos.yamlのurlも合わせて更新
32
38
# - dojo_id: 342
Original file line number Diff line number Diff line change 3345
3345
description : 猪名川町で毎月開催
3346
3346
tags :
3347
3347
- 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
3348
3362
- id : 35
3349
3363
order : ' 292010'
3350
3364
created_at : ' 2014-10-26'
Original file line number Diff line number Diff line change 195
195
end
196
196
end
197
197
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
198
209
end
You can’t perform that action at this time.
0 commit comments