Simplify links on diary pages
This commit is contained in:
parent
fda99ba304
commit
ff8fbcbdc5
7 changed files with 20 additions and 17 deletions
|
@ -886,8 +886,9 @@ class DiaryEntriesControllerTest < ActionDispatch::IntegrationTest
|
|||
get diary_comments_path(:display_name => other_user.display_name)
|
||||
assert_response :success
|
||||
assert_template :comments
|
||||
assert_select "table.table-striped" do
|
||||
assert_select "tr", :count => 2 # header and one comment
|
||||
assert_dom "a[href='#{user_path(other_user)}']", :text => other_user.display_name
|
||||
assert_select "table.table-striped tbody" do
|
||||
assert_select "tr", :count => 1
|
||||
end
|
||||
|
||||
# Test a suspended user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue