class Shoulda::Matchers::Pundit::ForbidMatcher

Private Instance Methods

failure_keyword_forbid() click to toggle source
# File lib/shoulda/matchers/pundit.rb, line 90
def failure_keyword_forbid; 'permit'; end
failure_keyword_permit() click to toggle source
# File lib/shoulda/matchers/pundit.rb, line 89
def failure_keyword_permit; 'forbid'; end
forbids?(action) click to toggle source
# File lib/shoulda/matchers/pundit.rb, line 85
def forbids?(action)
  !permits? action
end
match?(action) click to toggle source
# File lib/shoulda/matchers/pundit.rb, line 79
def match?(action)
  f = forbids? action
  append_failed(action) unless f
  f
end