Skip to content

A platform for community discussion. Free, open, simple.

improve spec

Sambdd977586932
diff --git a/spec/models/topic_embed_spec.rb b/spec/models/topic_embed_spec.rb
index 4974f52cdde..5d0468fb1af 100644
--- a/spec/models/topic_embed_spec.rb
+++ b/spec/models/topic_embed_spec.rb
@@ -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