Refactor user_spec.rb