module AzureJwtAuth::Spec::Helpers

Public Instance Methods

sign_in(user) click to toggle source
# File lib/azure_jwt_auth/spec/helpers.rb, line 6
def sign_in(user)
  allow(controller).to receive(:authenticate!).and_return(true)
  allow(controller).to receive(:current_user).and_return(user)
end