module ChefSpec::API::User

def lock_user(resource_name)

Returns:
  • (ChefSpec::Matchers::ResourceMatcher) -

Parameters:
  • resource_name (String, Regex) --

Other tags:
    Example: Assert that a +user+ was _not_ locked -
    Example: Assert that a +user+ was locked using a regex -
    Example: Assert that a +user+ was locked with attributes -
    Example: Assert that a +user+ was locked with predicate matchers -
    Example: Assert that a +user+ was locked -
def lock_user(resource_name)
  ChefSpec::Matchers::ResourceMatcher.new(:user, :lock, resource_name)
end