diff test/mocks/open_id_authentication_mock.rb @ 909:cbb26bc654de redmine-1.3

Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author Chris Cannam
date Fri, 24 Feb 2012 19:09:32 +0000
parents 513646585e45
children 433d4f72a19b
line wrap: on
line diff
--- a/test/mocks/open_id_authentication_mock.rb	Fri Feb 24 18:36:29 2012 +0000
+++ b/test/mocks/open_id_authentication_mock.rb	Fri Feb 24 19:09:32 2012 +0000
@@ -1,16 +1,16 @@
 # Mocks out OpenID
 #
 # http://www.northpub.com/articles/2007/04/02/testing-openid-support
-module OpenIdAuthentication 
+module OpenIdAuthentication
 
-  EXTENSION_FIELDS = {'email' => 'user@somedomain.com',
+  EXTENSION_FIELDS = {'email'    => 'user@somedomain.com',
                       'nickname' => 'cool_user',
-                      'country' => 'US',
+                      'country'  => 'US',
                       'postcode' => '12345',
                       'fullname' => 'Cool User',
-                      'dob' => '1970-04-01',
+                      'dob'      => '1970-04-01',
                       'language' => 'en',
-                      'timezone' => 'America/New_York'}     
+                      'timezone' => 'America/New_York'}
 
   protected
 
@@ -31,7 +31,7 @@
 
         yield Result[:successful], identity_url , extension_response_fields
       else
-        logger.info "OpenID authentication failed: #{identity_url}" 
+        logger.info "OpenID authentication failed: #{identity_url}"
         yield Result[:failed], identity_url, nil
       end
     end