refactor user_spec.rb