DEV: Update spec for category permalink

Followup to 3215f2b6ee
This commit is contained in:
David Taylor 2020-03-20 22:26:45 +00:00
parent 3215f2b6ee
commit dbfec4b268
No known key found for this signature in database
GPG Key ID: 46904C18B1D3F434

View File

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