module Shoulda::Matchers::Pundit
Constants
- VERSION
Public Instance Methods
be_permitted_to(action)
click to toggle source
# File lib/shoulda/matchers/pundit.rb, line 15 def be_permitted_to(action) PermittedToMatcher.new(action) end
forbid(*actions)
click to toggle source
# File lib/shoulda/matchers/pundit.rb, line 11 def forbid(*actions) ForbidMatcher.new(*actions) end
permit(*actions)
click to toggle source
# File lib/shoulda/matchers/pundit.rb, line 7 def permit(*actions) PermitMatcher.new(*actions) end