spec/spec_helper.rb in pundit-2.0.0 vs spec/spec_helper.rb in pundit-2.0.1
- old
+ new
@@ -234,9 +234,21 @@
# deliberate typo method
def initalize; end
end
end
+class Thread
+ def self.all; end
+end
+class ThreadPolicy < Struct.new(:user, :thread)
+ class Scope < Struct.new(:user, :scope)
+ def resolve
+ # deliberate wrong useage of the method
+ scope.all(:unvalid, :parameters)
+ end
+ end
+end
+
class PostFourFiveSix < Struct.new(:user); end
class CommentFourFiveSix; extend ActiveModel::Naming; end
module ProjectOneTwoThree