mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
FIX: Fixed editing whispers bumps topic (#7106)
This commit is contained in:
@ -393,6 +393,15 @@ describe PostsController do
|
||||
post.reload
|
||||
expect(post.raw).to eq('edited body')
|
||||
end
|
||||
|
||||
it "won't update bump date if post is a whisper" do
|
||||
post = Fabricate(:post, post_type: Post.types[:whisper], user: user)
|
||||
|
||||
put "/posts/#{post.id}.json", params: update_params
|
||||
expect(response.status).to eq(200)
|
||||
|
||||
expect(post.topic.reload.bumped_at).to be < post.created_at
|
||||
end
|
||||
end
|
||||
|
||||
it 'can not change category to a disallowed category' do
|
||||
|
Reference in New Issue
Block a user