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 3232 < small >
3333 ☯️
3434 < br class ='ignore-pc '>
35- 道場名
35+ 道場名 (ID 番号)
3636 </ small >
3737 </ th >
3838 < th >
6161 < tr >
6262 < td >
6363 < 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 %>
6568 </ small >
6669 </ td >
6770 < td >
Original file line number Diff line number Diff line change 369369 # 掲載日は YYYY-MM-DD 形式で表示される
370370 expect ( response . body ) . to match ( @active_dojo . created_at . strftime ( "%Y-%m-%d" ) )
371371 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
372379 end
373380end
You can’t perform that action at this time.
0 commit comments