mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -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
|
it "Supports updating the post" do
|
||||||
new_user = Fabricate(:user)
|
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.cooked).to match(/new contents/)
|
||||||
|
expect(post.topic.title).to eq("I am a new title")
|
||||||
expect(post.user).to eq(new_user)
|
expect(post.user).to eq(new_user)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user