added an option to bypass auto tracking of topics on post creation

This commit is contained in:
Sam
2013-07-22 11:40:39 +10:00
parent 9e4b0df7ff
commit 31bb08bcdd
9 changed files with 31 additions and 5 deletions

View File

@@ -11,8 +11,12 @@ describe TopicUser do
DateTime.expects(:now).at_least_once.returns(yesterday)
end
let!(:topic) { Fabricate(:topic) }
let!(:user) { Fabricate(:coding_horror) }
let!(:topic) {
user = Fabricate(:user)
guardian = Guardian.new(user)
TopicCreator.create(user, guardian, title: "this is my topic title")
}
let(:topic_user) { TopicUser.get(topic,user) }
let(:topic_creator_user) { TopicUser.get(topic, topic.user) }