mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 18:36:35 +08:00
Prefabricated topic
This commit is contained in:
parent
3e2f7d800a
commit
033d584275
|
@ -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) }
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user