mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
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…
Reference in New Issue
Block a user