(function () {
  angular
    .module("viewpoint.controllers")
    .controller("signupCtrl", signupCtrl);

  signupCtrl.$inject = ["$auth", "errorsService"];

  function signupCtrl ($auth, errorsService) {
    var vm = this;

    vm.user = {
      errors: {
        "email": "e-mail em uso",
        "password": "senha curta"
      }
    };

    vm.fieldErrors      = fieldErrors;
    vm.signupFormSubmit = signupFormSubmit;

    function signupFormSubmit (user) {
      return $auth.signup(user)
        .then(userCreated)
        .catch(userCreationFail)
        .finally(signupFormReset);
    }

    function userCreated (response) {
      console.log(response);
    }

    function userCreationFail (error) {
      console.log(error);
    }

    function signupFormReset () {
      vm.user.password = "";
      vm.user.passwordConfirmation = "";

      vm.signupForm.$setPristine();
    }

    function fieldErrors (field) {
      return errorsService.normalize(vm.signupForm, vm.user, field);
    }
  }
})();

@@ -237,105 +237,8 @@
  = %7B
-%0A      errors: %7B%0A        %22email%22: %22e-mail em uso%22,%0A        %22password%22: %22senha curta%22%0A      %7D%0A    
 %7D;%0A%0A

Remove erros de teste