From b49f2bf7d90cdfa61d5ded5d99c5aafa1163a3da Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Wed, 4 Apr 2018 12:20:50 +0530 Subject: [PATCH] fix false spec --- spec/models/topic_converter_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/topic_converter_spec.rb b/spec/models/topic_converter_spec.rb index adbe5e911d4..ad18f421476 100644 --- a/spec/models/topic_converter_spec.rb +++ b/spec/models/topic_converter_spec.rb @@ -98,7 +98,7 @@ describe TopicConverter do expect(private_message).to be_valid expect(topic.archetype).to eq("private_message") expect(topic.category_id).to eq(nil) - expect(category.topic_count).to eq(0) + expect(category.reload.topic_count).to eq(0) end it "updates user stats" do