Quick Thoughts...

Kudos for the super helpful error message:

constraints

I have a constraint on the route, and I was passing "posts" instead of "posts.

delete "/orphans/:type/:uid", to: "orphans#delete", as: "delete_orphaned_items", constraints: {type: /(post|page)/}
#

Introduction to Minitest Mocks

Test doubles likes mocks and stubs can help us with isolating code under test with the rest of the system. Here’s how to mock in Minitest.

#

It hurts my feelings when one flaky system test causes the whole bar to turn red.

flakey.png

#

Charlie Munge:

The world isn't driven by greed. It's driven by envy.

#

Ruby Enumerable#any?

At first glance, this is not what I was expecting:

[false, false, false].any? => false

But a quick glance at the docs:

The method returns true if the block ever returns a value other than false or nil

This can be handy for doing a bunch of small tests and detecting if anything passed.

#