mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 18:51:07 +08:00
DEV: Deprecate Category#url_with_id in favor of Category#url (#9972)
This commit is contained in:
@ -63,7 +63,7 @@ describe Permalink do
|
||||
|
||||
it "returns a category url when category_id is set" do
|
||||
permalink.category_id = category.id
|
||||
expect(target_url).to eq("#{category.url}/#{category.id}")
|
||||
expect(target_url).to eq("#{category.url}")
|
||||
end
|
||||
|
||||
it "returns nil when category_id is set but category is not found" do
|
||||
|
Reference in New Issue
Block a user