Module: Pundit::RSpec::DSL

Defined in:
lib/pundit/rspec.rb

Instance Method Summary collapse

Instance Method Details

#permissions(*list, &block) ⇒ Object



49
50
51
# File 'lib/pundit/rspec.rb', line 49

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