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

@ -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