improve spec

This commit is contained in:
Sam 2018-05-02 17:16:00 +10:00
parent 0cc4b42180
commit bdd9775869

View File

@ -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