14988: Fixes assert_equal param ordering for proper error messages.
[arvados.git] / apps / workbench / test / integration / user_profile_test.rb
index bf15217f2fc055b715d8c24641438b4efebdf45b..e4d9894e5fb4e902f90dffc4019e2a771722cd37 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 require 'integration_helper'
 
 class UserProfileTest < ActionDispatch::IntegrationTest
@@ -96,10 +100,11 @@ class UserProfileTest < ActionDispatch::IntegrationTest
     required_field_title = ''
     required_field_key = ''
     profile_config = Rails.configuration.user_profile_form_fields
-    profile_config.andand.each do |entry|
+    profile_config.each do |entry|
       if entry['required']
         required_field_key = entry['key']
         required_field_title = entry['form_field_title']
+        break
       end
     end