Honestly I copied over this implementation and spec with no significant
modifications. My goal was to fix the rspec-rails build being broken since
rspec-expectations removed `have` matchers.