mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
parent
3215f2b6ee
commit
dbfec4b268
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue