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 }