public
Description: Gitorious aims to provide a great way of doing distributed opensource code collaboration.
Homepage: http://gitorious.org/projects/gitorious
Clone URL: git://github.com/dysinger/gitorious.git
openid specs pass, yay
renaming openid migration number
bobesponja (author)
Wed Apr 30 16:47:08 -0700 2008
commit  efb3840949a25e17fe40f09abc2ac5b7b9171b47
tree    0880ef705389dd41b27d442a51ba32d80af0c3fc
parent  ab04dabaa7accdb4ebc9ec1f44a312f90893d930
...
31
32
33
34
35
36
 
 
 
37
38
39
...
31
32
33
 
 
 
34
35
36
37
38
39
0
@@ -31,9 +31,9 @@ class SessionsController < ApplicationController
0
       if result.successful?
0
         @user = User.find_or_initialize_by_identity_url(identity_url)
0
         if @user.new_record?
0
- @user.login = registration['nickname']
0
- @user.fullname = registration['fullname']
0
- @user.email = registration['email']
0
+ @user.login = registration[:nickname]
0
+ @user.fullname = registration[:fullname]
0
+ @user.email = registration[:email]
0
           @user.save!
0
           @user.activate
0
         end
...
1
 
2
3
4
...
21
22
23
24
 
 
25
26
27
...
1
2
3
4
5
...
22
23
24
 
25
26
27
28
29
0
@@ -1,4 +1,5 @@
0
 require File.dirname(__FILE__) + '/../spec_helper'
0
+include OpenIdAuthentication
0
 
0
 describe SessionsController do
0
   
0
@@ -21,7 +22,8 @@ describe SessionsController do
0
     identity_url = "http://patcito.myopenid.com"
0
     controller.stub!(:using_open_id?).and_return(true)
0
     controller.stub!(:successful?).and_return(true)
0
- controller.stub!(:authenticate_with_open_id).and_yield(result="successfull",identity_url,{:nickname=>"patcito",:email=>"patcito@gmail.com",:fullname=>'Patrick Aljord'})
0
+ controller.stub!(:authenticate_with_open_id).and_yield(Result[:successful],identity_url,registration={:nickname=>"patcito",:email=>"patcito@gmail.com",:fullname=>'Patrick Aljord'})
0
+ post :create, :openid_url => identity_url
0
     session[:user_id].should_not be(nil)
0
     response.should be_redirect
0
   end

Comments

    No one has commented yet.