Port improved rspec helpers from other project.