PierreGambarotto/project_I_authentification — pull request #11 by MBAPPOU (2012-03-13 14:39:32+00:00)
Title: Mbappou yvan

Bonjour Monsieur,

Je vous sollicite de nouveau car lorsque je lance mes tests "s_auth_rspec.rb" j'ai des erreurs de ce genre.

Failures:

1) Authentification server to register somebody should return again a formular when no password or login put in the first formular
Failure/Error: follow_redirect!
URI::InvalidURIError:
bad URI(is not URI?): http://example.org/s_auth/user/register?message=:Regsistering failed
# ./s_auth_spec.rb:46:in `block (3 levels) in '

2) Authentification server to authenticate somebody should return a message if you have been logged earlier
Failure/Error: last_response.body.should == "Welcome ok1 \n \n Disconnect" # Pb de test
expected: "Welcome ok1 \n \n Disconnect"
got: "" (using ==)
Diff:
@@ -1,4 +1 @@
-Welcome ok1
-
- Disconnect
# ./s_auth_spec.rb:68:in `block (3 levels) in '

3) Authentification server to authenticate somebody should print an error message if it doesn't know this login
Failure/Error: follow_redirect!
URI::InvalidURIError:
bad URI(is not URI?): http://example.org/s_auth/user/login?message=:Authentification failed
# ./s_auth_spec.rb:84:in `block (3 levels) in '

4) Authentification server to authenticate somebody should redirect you on login page if problem occured because of wrong password
Failure/Error: follow_redirect!
URI::InvalidURIError:
bad URI(is not URI?): http://example.org/s_auth/user/login?message=:Authentification failed
# ./s_auth_spec.rb:95:in `block (3 levels) in '

5) Authentification server to register an application should redirect you on register application page if saving failed
Failure/Error: last_response.should be_redirect
expected redirect? to return true, got false
# ./s_auth_spec.rb:141:in `block (3 levels) in '

6) Authentification server to authenticate somebody on knowned application should return a formular
Failure/Error: last_response.status.should be_ok
NoMethodError:
undefined method ok?' for 500:Fixnum
# ./s_auth_spec.rb:154:inblock (3 levels) in '

Pourriez-vous m'éclairer svp? Je vous prierai de jeter un coup d'oeil dans le corps des methodes post/login et post/register et me donner un retour svp parce que je ne comprens pas pourquoi mes redirections se font à l'adresse example.org et pourtant je ne l'ai écrit dans mon code

Cordialement,
Yvan MBAPPOU