fix unit tests

This commit is contained in:
r888888888
2017-11-20 16:10:35 -08:00
parent f11992bd91
commit 502f1298a9
25 changed files with 101 additions and 29 deletions

View File

@@ -1,6 +1,11 @@
require 'test_helper'
class BanTest < ActiveSupport::TestCase
def setup
super
User.any_instance.stubs(:validate_sock_puppets).returns(true)
end
context "A ban" do
context "created by an admin" do
setup do