This would probably be better if moved to it's own helper. You can look at the `spec/support/test_helper.rb` for an example. You'll also need to include it in the `spec/spec_helper.rb`.