3296: split profile config into two parameters: one for fields and one for message.
[arvados.git] / apps / workbench / test / integration / application_layout_test.rb
index 21406b03b1852cebfe948788025bb4fedda7ec7c..bef907d4b26eeb2467ab108075326a73ac59a9c6 100644 (file)
@@ -192,18 +192,14 @@ class ApplicationLayoutTest < ActionDispatch::IntegrationTest
     assert page.has_text? 'Save profile'
 
     # This time fill in required field and then save. Expect to go to requested page after that.
-    profile_config = Rails.configuration.user_profile_form_fields
-    profile_message = ''
+    profile_message = Rails.configuration.user_profile_form_message
     required_field_title = ''
     required_field_key = ''
-    profile_config.andand.each do |entry| 
-      if entry['message']
-        profile_message = entry['message']
-      else
-        if entry['required']
-          required_field_key = entry['key']
-          required_field_title = entry['form_field_title']
-        end
+    profile_config = Rails.configuration.user_profile_form_fields
+    profile_config.andand.each do |entry|
+      if entry['required']
+        required_field_key = entry['key']
+        required_field_title = entry['form_field_title']
       end
     end