DEV: Deprecate Category#url_with_id in favor of Category#url (#9972)

This commit is contained in:
Dan Ungureanu
2020-06-18 11:32:14 +03:00
committed by GitHub
parent 62faa0f5fe
commit d21a08c284
10 changed files with 21 additions and 45 deletions

View File

@ -13,7 +13,7 @@ describe CategoriesController do
get '/categories', headers: { 'HTTP_USER_AGENT' => 'Googlebot' }
html = Nokogiri::HTML5(response.body)
expect(html.css('body.crawler')).to be_present
expect(html.css("a[href=\"/forum/c/#{category.slug}\"]")).to be_present
expect(html.css("a[href=\"/forum/c/#{category.slug}/#{category.id}\"]")).to be_present
end
it "properly preloads topic list" do