Update spec, remove turnip, to get tests working

This commit is contained in:
Jason Denney
2014-02-02 09:44:18 -05:00
parent f10b2adad6
commit 8c5ff986a2
5 changed files with 73 additions and 74 deletions
+8 -7
View File
@@ -222,11 +222,12 @@ Devise.setup do |config|
# end
end
#Check in the user if they sign in. (Devise uses Warden)
Warden::Manager.after_set_user do |user,auth,opts|
# this essentially gets called after every netzke request, but alas,
# only using the after_authenticaion callback doesn't get fired after
# user creation.
user.checkin unless user.checked_in?
unless Rails.env.test?
#Check in the user if they sign in. (Devise uses Warden)
Warden::Manager.after_set_user do |user,auth,opts|
# this essentially gets called after every netzke request, but alas,
# only using the after_authenticaion callback doesn't get fired after
# user creation.
user.checkin unless user.checked_in?
end
end