module Mtwarden::TestingSupport::AuthenticationHelpers

Public Class Methods

included(base) click to toggle source
# File lib/mtwarden/testing_support/authentication_helpers.rb, line 7
def self.included(base)
  base.after do
    logout
  end
end

Public Instance Methods

sign_in_as(options={}) click to toggle source
# File lib/mtwarden/testing_support/authentication_helpers.rb, line 13
def sign_in_as(options={})
  options.each do |scope, object|
    login_as(object, :scope => scope)
  end
end