Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alexandre Schoutteet : ajout des tests unitaires #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

darkpitt
Copy link

  • ajout des tests unitaires pour le TasksController.
  • modification des methodes show et edit du TasksController permettant de vérifier l'id passer depuis l'url. Je vérifie donc d'abord que l'id est bien un nombre avant de faire la requête grâce au model, ensuive je verifie que le model renvoie bien un objet sinon j'effectue une redirection vers la route tasks.index correspondant à la liste des tasks.

@darkpitt darkpitt changed the title ajout des tests unitaires Alexandre Schoutteet : ajout des tests unitaires Nov 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants