spec/support/controllers/shared_auth_helpers.rb
# lets current_user return the specified attributes for simulating
# authentication methods for shibbolite
lets current_user return the specified attributes for simulating
authentication methods for shibbolite
lets current_user return the specified attributes for simulating authentication methods for shibbolite
def log_in_as (options = {umbcusername: 'current_user'})
      @c_user = FactoryGirl.build(:user, options)
      User.stub(:find_user) { @c_user }
      session[:umbcusername] = options[:umbcusername]
    end
def log_in_as ( options = { umbcusername : 'current_user' } ) @c_user = FactoryGirl . build ( :user , options ) User . stub ( :find_user ) { @c_user } session [ :umbcusername ] = options [ :umbcusername ] end
lets current_user return the specified attributes for simulating
authentication methods for shibbolite
lets current_user return the specified attributes for simulating authentication methods for shibbolite
options
<not_specific>