Simplify links on trace pages

This commit is contained in:
Anton Khorev 2024-03-20 06:07:24 +03:00
parent 188a6e175e
commit fc270221d3
6 changed files with 15 additions and 14 deletions

View file

@ -833,6 +833,7 @@ class TracesControllerTest < ActionDispatch::IntegrationTest
assert_select row, "li", Regexp.new(Regexp.escape("#{trace.size} points")) if trace.inserted?
assert_select row, "td", Regexp.new(Regexp.escape(trace.description))
assert_select row, "td", Regexp.new(Regexp.escape("by #{trace.user.display_name}"))
assert_select row, "a[href='#{user_path trace.user}']", :text => trace.user.display_name
end
end
end
@ -845,7 +846,7 @@ class TracesControllerTest < ActionDispatch::IntegrationTest
assert_select "table", :count => 1 do
assert_select "td", /^#{Regexp.quote(trace.name)} /
assert_select "td", trace.user.display_name
assert_select "td a[href='#{user_path trace.user}']", :text => trace.user.display_name
assert_select "td", trace.description
end
end