Merge branch 'master' into 14965-arv-mount-py-three
[arvados.git] / apps / workbench / test / controllers / work_units_controller_test.rb
index 12e0271260edf3f815c6be70b0e995438d32761e..6f74955cd1c8d0940c979b70867a6cbbfda5aacb 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 require 'test_helper'
 
 class WorkUnitsControllerTest < ActionController::TestCase
@@ -28,7 +32,7 @@ class WorkUnitsControllerTest < ActionController::TestCase
        '/container_requests/zzzzz-xvhdp-cr4completedcr2']],
   ].each do |search_filter, expected_min, expected_max, expected, not_expected|
     test "all_processes page for search filter '#{search_filter}'" do
-      work_units_index(filters: [['any','@@', search_filter]])
+      work_units_index(filters: [['any','@@', search_filter]], show_children: true)
       assert_response :success
 
       # Verify that expected number of processes are found
@@ -63,6 +67,6 @@ class WorkUnitsControllerTest < ActionController::TestCase
     encoded_params = Hash[params.map { |k,v|
                             [k, (v.is_a?(Array) || v.is_a?(Hash)) ? v.to_json : v]
                           }]
-    get :index, encoded_params, session_for(:active)
+    get :index, params: encoded_params, session: session_for(:active)
   end
 end