Add some rspec helpers.

Stole these out of a consuming app.