From bdd977586932713e56a72b958a1f15ce611e2746 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 2 May 2018 17:16:00 +1000 Subject: [PATCH] improve spec --- spec/models/topic_embed_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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