Skip to content

Commit 2f07933

Browse files
committed
fix: CoderDojo文脈に合わせた表記修正
- '🏢 支部数' → '☯️ 道場数' に変更(CoderDojoでは支部と呼ばない) - 道場名カラムに '🗾' アイコンを追加 - HTMLとCSVの両方で統一 - テストも合わせて更新
1 parent 6f6409b commit 2f07933

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

app/views/dojos/index.csv.ruby

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ require 'csv'
22

33
csv_data = CSV.generate do |csv|
44
# ヘッダー行
5-
csv << ['ID', '道場名', '支部数', '都道府県', 'URL', '設立日', '状態']
5+
csv << ['ID', '道場名', '道場数', '都道府県', 'URL', '設立日', '状態']
66

77
# データ行
88
@dojos.each do |dojo|

app/views/dojos/index.html.erb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,16 @@
9191
<tr>
9292
<th>
9393
<small>
94-
☯️
94+
🗾
9595
<br class='ignore-pc'>
9696
道場名 (ID 番号)
9797
</small>
9898
</th>
9999
<th>
100100
<small>
101-
🏢
101+
☯️
102102
<br class='ignore-pc'>
103-
支部数
103+
道場数
104104
</small>
105105
</th>
106106
<th>

spec/requests/dojos_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@
170170
get dojos_path(format: :csv)
171171
csv = CSV.parse(response.body, headers: true)
172172

173-
# ヘッダーに支部数が含まれる
174-
expect(csv.headers).to include("支部数")
173+
# ヘッダーに道場数が含まれる
174+
expect(csv.headers).to include("道場数")
175175

176176
# 各道場のcounter値が含まれる
177177
multi_branch_row = csv.find { |row| row["ID"] == @dojo_multi_branch.id.to_s }
178-
expect(multi_branch_row["支部数"]).to eq("3")
178+
expect(multi_branch_row["道場数"]).to eq("3")
179179
end
180180

181181
it "calculates counter_sum correctly" do
@@ -201,7 +201,7 @@
201201
get dojos_path(format: :csv)
202202
csv = CSV.parse(response.body, headers: true)
203203

204-
expect(csv.headers).to eq(['ID', '道場名', '支部数', '都道府県', 'URL', '設立日', '状態'])
204+
expect(csv.headers).to eq(['ID', '道場名', '道場数', '都道府県', 'URL', '設立日', '状態'])
205205
end
206206

207207
it "includes total row at the end" do

0 commit comments

Comments
 (0)