remove trailing white-spaces and code clean up test/mocks/open_id_authentication_mock.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5988 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
78c35619ed
commit
6253ea840c
@ -1,16 +1,16 @@
|
|||||||
# Mocks out OpenID
|
# Mocks out OpenID
|
||||||
#
|
#
|
||||||
# http://www.northpub.com/articles/2007/04/02/testing-openid-support
|
# 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',
|
'nickname' => 'cool_user',
|
||||||
'country' => 'US',
|
'country' => 'US',
|
||||||
'postcode' => '12345',
|
'postcode' => '12345',
|
||||||
'fullname' => 'Cool User',
|
'fullname' => 'Cool User',
|
||||||
'dob' => '1970-04-01',
|
'dob' => '1970-04-01',
|
||||||
'language' => 'en',
|
'language' => 'en',
|
||||||
'timezone' => 'America/New_York'}
|
'timezone' => 'America/New_York'}
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
||||||
@ -31,7 +31,7 @@ module OpenIdAuthentication
|
|||||||
|
|
||||||
yield Result[:successful], identity_url , extension_response_fields
|
yield Result[:successful], identity_url , extension_response_fields
|
||||||
else
|
else
|
||||||
logger.info "OpenID authentication failed: #{identity_url}"
|
logger.info "OpenID authentication failed: #{identity_url}"
|
||||||
yield Result[:failed], identity_url, nil
|
yield Result[:failed], identity_url, nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user