Mercurial > hg > soundsoftware-site
diff test/mocks/open_id_authentication_mock.rb @ 1115:433d4f72a19b redmine-2.2
Update to Redmine SVN revision 11137 on 2.2-stable branch
author | Chris Cannam |
---|---|
date | Mon, 07 Jan 2013 12:01:42 +0000 |
parents | cbb26bc654de |
children |
line wrap: on
line diff
--- a/test/mocks/open_id_authentication_mock.rb Wed Jun 27 14:54:18 2012 +0100 +++ b/test/mocks/open_id_authentication_mock.rb Mon Jan 07 12:01:42 2013 +0000 @@ -16,9 +16,10 @@ def authenticate_with_open_id(identity_url = params[:openid_url], options = {}) #:doc: if User.find_by_identity_url(identity_url) || identity_url.include?('good') + extension_response_fields = {} + # Don't process registration fields unless it is requested. unless identity_url.include?('blank') || (options[:required].nil? && options[:optional].nil?) - extension_response_fields = {} options[:required].each do |field| extension_response_fields[field.to_s] = EXTENSION_FIELDS[field.to_s]