refactored user spec rb