Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

test helper for signing in

  • Loading branch information...
commit 7ce99b9e395bd7d4e57749052dc8dafc93c938bc 1 parent a5ca508
@demental demental authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 test/support/controller_macros.rb
View
5 test/support/controller_macros.rb
@@ -0,0 +1,5 @@
+module ControllerMacros
+ def sign_in user
+ session[:user_id] = user.id
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.