Module: LogicalAuthz::ControllerExampleGroupMixin

Included in:
RSpec::Rails::ControllerExampleGroup
Defined in:
lib/logical_authz/spec_helper.rb

Instance Method Summary collapse

Instance Method Details

#be_authorizedObject



61
62
63
# File 'lib/logical_authz/spec_helper.rb', line 61

def be_authorized
  return Matcher::Authorized.new
end

#be_forbiddenObject



65
66
67
# File 'lib/logical_authz/spec_helper.rb', line 65

def be_forbidden
  return Matcher::Forbidden.new
end