fix functional tests

This commit is contained in:
r888888888
2017-11-20 16:29:59 -08:00
parent 502f1298a9
commit ba517af1db
5 changed files with 27 additions and 6 deletions

View File

@@ -51,7 +51,13 @@ class ActionController::TestCase
assert_redirected_to(new_sessions_path)
end
teardown do
def setup
super
User.any_instance.stubs(:validate_sock_puppets).returns(true)
end
def teardown
super
Cache.clear
end
end