Module: Pundit::RSpec::DSL

Defined in:
lib/pundit/rspec.rb

Instance Method Summary collapse

Instance Method Details

#permissions(*list, &block) ⇒ Object


55
56
57
# File 'lib/pundit/rspec.rb', line 55

def permissions(*list, &block)
  describe(list.to_sentence, permissions: list, caller: caller) { instance_eval(&block) }
end