lib/action_policy/testing.rb in action_policy-0.3.4 vs lib/action_policy/testing.rb in action_policy-0.4.0

- old
+ new

@@ -13,11 +13,11 @@ @rule = rule end def matches?(policy_class, actual_rule, target) policy_class == policy.class && - target == policy.record && + target === policy.record && rule == actual_rule end def inspect "#{policy.record.inspect} was authorized with #{policy.class}##{rule}" @@ -105,11 +105,11 @@ def call(*args) AuthorizeTracker.track(*args) super end - def scopify(*args) - AuthorizeTracker.track_scope(*args) + def scopify(*args, **kwargs) + AuthorizeTracker.track_scope(*args, **kwargs) super end end ActionPolicy::Authorizer.singleton_class.prepend(AuthorizerExt)