This looks like test-specific code, so shouldn't it go in `spec/support`?