Consider putting this in a  module so it's not a global method:

See: [this login_helper module](https://github.com/Devbootcamp/gossyp/blob/master/spec/helpers/feature_login_helper.rb) and [this spec_helper](https://github.com/Devbootcamp/gossyp/blob/master/spec/spec_helper.rb) for an example of how.