My Profile Photo

Chris Arcand


Engineering lead building Terraform at HashiCorp πŸ‘¨β€πŸ’» Formerly: Red Hat, NBC SportsEngine. RubyMN organizer. OSS, distributed teams, and ice hockey. I make pointless connections to Minnesota as a Minnesotan does.

St. Paul, MN


RSpec Pattern for Testing Permissions

My colleague Brady Ouren recently posted about a pattern we developed to more easily test user permissions in Rails controllers with RSpec. It’s especially useful when a ton of different things need to be mocked to set up the proper conditions for a successful test.

It works out quite well; my only complaint is that using such methods throws off such things as vim-rspec.

RSpec Pattern for Testing Permissions by Brady Ouren

Enjoy this post? Please share!

<- Back