mirror of
https://github.com/discourse/discourse.git
synced 2025-04-26 02:14:29 +08:00
DEV: Update spec for category permalink
Followup to 3215f2b6ee683b4a1290f8fd61c08ab7ac27090d
This commit is contained in:
parent
3215f2b6ee
commit
dbfec4b268
@ -297,7 +297,7 @@ RSpec.describe ApplicationController do
|
||||
permalink = Permalink.create!(url: trashed_topic.relative_url, category_id: category.id)
|
||||
get "/t/#{trashed_topic.slug}/#{trashed_topic.id}"
|
||||
expect(response.status).to eq(301)
|
||||
expect(response).to redirect_to("/forum/c/#{category.slug}")
|
||||
expect(response).to redirect_to("/forum/c/#{category.slug}/#{category.id}")
|
||||
|
||||
permalink.destroy
|
||||
permalink = Permalink.create!(url: trashed_topic.relative_url, post_id: new_topic.posts.last.id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user