Auto-promote DanbooruBot to Mod. Auto-create DanbooruBot if it doesn't exist.

This commit is contained in:
evazion
2017-12-15 14:51:24 -06:00
parent b48211cd4a
commit e2eb45a5a3
8 changed files with 21 additions and 9 deletions

View File

@@ -20,7 +20,7 @@ class PostReplacementTest < ActiveSupport::TestCase
Delayed::Worker.delay_jobs = true # don't delete the old images right away
@system = FactoryGirl.create(:user, created_at: 2.weeks.ago)
Danbooru.config.stubs(:system_user).returns(@system)
User.stubs(:system).returns(@system)
@uploader = FactoryGirl.create(:user, created_at: 2.weeks.ago, can_upload_free: true)
@replacer = FactoryGirl.create(:user, created_at: 2.weeks.ago, can_approve_posts: true)