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.
|
- module AuthHelper
- def sign_in_as(user)
- allow_any_instance_of(ApplicationController)
- .to receive(:current_user).and_return(user)
- end
-
- def sign_out
- allow_any_instance_of(ApplicationController)
- .to receive(:current_user).and_return(nil)
- end
- end
|