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

Helper to make app think test is running when logged in

parent c3e188cb
No related branches found
No related tags found
No related merge requests found
......@@ -7,4 +7,8 @@ class ActiveSupport::TestCase
fixtures :all
# Add more helper methods to be used by all tests here...
Rails.application.load_seed
def sign_in_as_tester
post login_url, params: {email: users(:one).email, password: "t00l33t4u"}
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