Skip to content
Snippets Groups Projects
Commit 6c557ac6 authored by Butler, Alexis (UG - Computer Science)'s avatar Butler, Alexis (UG - Computer Science)
Browse files

Added helper to sign in as an admin for tests

parent 856e1d8c
No related branches found
No related tags found
No related merge requests found
......@@ -11,4 +11,7 @@ class ActiveSupport::TestCase
def sign_in_as_tester
post login_url, params: {email: users(:one).email, password: "t00l33t4u"}
end
def sign_in_as_admin
post login_url, params: {email: users(:admin).email, password: "superSecret"}
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment