mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: TopicEmbed.import should update title and author
This commit is contained in:
@ -41,8 +41,12 @@ describe TopicEmbed do
|
||||
end
|
||||
|
||||
it "Supports updating the post" do
|
||||
post = TopicEmbed.import(user, url, title, "muhahaha new contents!")
|
||||
new_user = Fabricate(:user)
|
||||
|
||||
post = TopicEmbed.import(new_user, url, title, "muhahaha new contents!")
|
||||
|
||||
expect(post.cooked).to match(/new contents/)
|
||||
expect(post.user).to eq(new_user)
|
||||
end
|
||||
|
||||
it "Should leave uppercase Feed Entry URL untouched in content" do
|
||||
|
Reference in New Issue
Block a user