Testing abstract Rails controllers
I recently published a gem that lets you define anonymous controllers in your tests. It’s similar to RSpec’s anonymous controller specs, but for Minitest. https://zachahn.com/posts/1628492291
See also: https://github.com/zachahn/rails_anonymous_controller_testing
Comments
Thanks for this! Just used this feature recently in RSpec, super handy feature for testing exception and error handling. Glad we can now do this in minitest!
Post a comment