refactors spec_helper