refactor User#validate_sock_puppet to disable for tests
This commit is contained in:
@@ -6,7 +6,6 @@ class SavedSearchTest < ActiveSupport::TestCase
|
||||
|
||||
def setup
|
||||
super
|
||||
User.any_instance.stubs(:validate_sock_puppets).returns(true)
|
||||
@user = FactoryGirl.create(:user)
|
||||
CurrentUser.user = @user
|
||||
CurrentUser.ip_addr = "127.0.0.1"
|
||||
|
||||
Reference in New Issue
Block a user