mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
improve spec
This commit is contained in:
parent
0cc4b42180
commit
bdd9775869
@ -43,9 +43,10 @@ describe TopicEmbed do
|
||||
it "Supports updating the post" do
|
||||
new_user = Fabricate(:user)
|
||||
|
||||
post = TopicEmbed.import(new_user, url, title, "muhahaha new contents!")
|
||||
post = TopicEmbed.import(new_user, url, "I am a new title", "muhahaha new contents!")
|
||||
|
||||
expect(post.cooked).to match(/new contents/)
|
||||
expect(post.topic.title).to eq("I am a new title")
|
||||
expect(post.user).to eq(new_user)
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user