Class: LogicalAuthz::Matcher::Forbidden

Inherits:
Authorized
  • Object
show all
Defined in:
lib/logical_authz/spec_helper.rb

Instance Method Summary collapse

Methods inherited from Authorized

#failure_message, #failure_message_for_should, #failure_message_for_should_not, #initialize, #matches?

Constructor Details

This class inherits a constructor from LogicalAuthz::Matcher::Authorized

Instance Method Details

#check_authorization_flagObject



51
52
53
54
55
# File 'lib/logical_authz/spec_helper.rb', line 51

def check_authorization_flag
  return false unless @flash.has_key? :logical_authz_record
  return true if @flash[:logical_authz_record][:result] == false
  return false
end

#match_stateObject



47
48
49
# File 'lib/logical_authz/spec_helper.rb', line 47

def match_state
  "forbidden"
end