lib/pundit/matchers.rb in pundit-matchers-1.0.0 vs lib/pundit/matchers.rb in pundit-matchers-1.0.1
- old
+ new
@@ -1,4 +1,6 @@
+require 'rspec/core'
+
module Pundit
module Matchers
RSpec::Matchers.define :permit_action do |action|
match do |policy|
policy.public_send("#{action}?")