refactore spec_helper