refactor User#validate_sock_puppet to disable for tests

This commit is contained in:
r888888888
2018-01-02 14:32:38 -08:00
parent ed948ad655
commit 4a80d6c337
18 changed files with 9 additions and 28 deletions

View File

@@ -4,8 +4,6 @@ class DmailFilterTest < ActiveSupport::TestCase
def setup
super
User.any_instance.stubs(:validate_sock_puppets).returns(true)
@receiver = FactoryGirl.create(:user)
@sender = FactoryGirl.create(:user)
end