diff options
Diffstat (limited to 'test/mocks/open_id_authentication_mock.rb')
-rw-r--r-- | test/mocks/open_id_authentication_mock.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/mocks/open_id_authentication_mock.rb b/test/mocks/open_id_authentication_mock.rb index 10d195e07..a7376e4ba 100644 --- a/test/mocks/open_id_authentication_mock.rb +++ b/test/mocks/open_id_authentication_mock.rb @@ -16,9 +16,10 @@ module OpenIdAuthentication 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] |