File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 32
32
< small >
33
33
☯️
34
34
< br class ='ignore-pc '>
35
- 道場名
35
+ 道場名 (ID 番号)
36
36
</ small >
37
37
</ th >
38
38
< th >
61
61
< tr >
62
62
< td >
63
63
< small >
64
- < a href ="<%= dojo [ :url ] %> "> <%= dojo [ :name ] %> </ a >
64
+ <%= link_to dojo_path ( dojo [ :id ] ) do %>
65
+ <%= dojo [ :name ] %> < br >
66
+ < small > (ID: <%= dojo [ :id ] %> )</ small >
67
+ <% end %>
65
68
</ small >
66
69
</ td >
67
70
< td >
Original file line number Diff line number Diff line change 369
369
# 掲載日は YYYY-MM-DD 形式で表示される
370
370
expect ( response . body ) . to match ( @active_dojo . created_at . strftime ( "%Y-%m-%d" ) )
371
371
end
372
+
373
+ it "displays dojo ID same as /dojos page" do
374
+ get activity_dojos_path
375
+ # /dojos ページと同じように ID が表示される
376
+ expect ( response . body ) . to include ( "(ID: #{ @active_dojo . id } )" )
377
+ expect ( response . body ) . to include ( "道場名 (ID 番号)" )
378
+ end
372
379
end
373
380
end
You can’t perform that action at this time.
0 commit comments