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!

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

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