From 3e2f7d800a4a798860fecd6357e40fd62f90615f Mon Sep 17 00:00:00 2001 From: Daniel Waterworth Date: Tue, 30 Apr 2019 18:08:57 +0100 Subject: [PATCH] Replaced create_topic with Fabricate(:topic) --- spec/components/topic_view_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/components/topic_view_spec.rb b/spec/components/topic_view_spec.rb index b02157ac1e6..2b796f2b1c3 100644 --- a/spec/components/topic_view_spec.rb +++ b/spec/components/topic_view_spec.rb @@ -8,7 +8,7 @@ describe TopicView do fab!(:user) { Fabricate(:user) } fab!(:moderator) { Fabricate(:moderator) } fab!(:admin) { Fabricate(:admin) } - let(:topic) { create_topic } + let(:topic) { Fabricate(:topic) } fab!(:evil_trout) { Fabricate(:evil_trout) } let(:first_poster) { topic.user }