Prefabricated topic

This commit is contained in:
Daniel Waterworth 2019-04-30 18:09:40 +01:00 committed by Robin Ward
parent 3e2f7d800a
commit 033d584275

View File

@ -8,9 +8,9 @@ describe TopicView do
fab!(:user) { Fabricate(:user) }
fab!(:moderator) { Fabricate(:moderator) }
fab!(:admin) { Fabricate(:admin) }
let(:topic) { Fabricate(:topic) }
fab!(:topic) { Fabricate(:topic) }
fab!(:evil_trout) { Fabricate(:evil_trout) }
let(:first_poster) { topic.user }
fab!(:first_poster) { topic.user }
let(:topic_view) { TopicView.new(topic.id, evil_trout) }