mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: generate topic excerpt when moving posts to new topic.
Currently, it's not generating the excerpt by default. We have to trigger the "Rebuild HTML" action to do it.
This commit is contained in:
@@ -118,7 +118,10 @@ RSpec.describe TopicsController do
|
||||
result = response.parsed_body
|
||||
|
||||
expect(result['success']).to eq(true)
|
||||
expect(result['url']).to eq(Topic.last.relative_url)
|
||||
|
||||
new_topic = Topic.last
|
||||
expect(result['url']).to eq(new_topic.relative_url)
|
||||
expect(new_topic.excerpt).to eq(p2.excerpt_for_topic)
|
||||
expect(Tag.all.pluck(:name)).to contain_exactly("tag1", "tag2")
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user