RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Pundit testing approaches compared

I am an old-time CanCanCan user and recently started to consider switching to Pundit. I am also a big fan of RSpec. Given how important Authorization (AuthZ) is, I want to test it properly.

I found two approaches to test Pundit policies with RSpec and I want to compare them in my post Comparing Pundit RSpec test Approaches

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in