ぼざクリタグ広場 https://hub.nizika.monster
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

12 lines
270 B

  1. module AuthHelper
  2. def sign_in_as(user)
  3. allow_any_instance_of(ApplicationController)
  4. .to receive(:current_user).and_return(user)
  5. end
  6. def sign_out
  7. allow_any_instance_of(ApplicationController)
  8. .to receive(:current_user).and_return(nil)
  9. end
  10. end