20470: Fix tests
[arvados.git] / services / api / test / integration / collections_api_test.rb
index baca6e2781f5b6be4fb7d1022b355d7eef0832ad..1ac5eb5c74c566d2738f4a0c76b70e9a8ee3725b 100644 (file)
@@ -95,7 +95,7 @@ class CollectionsApiTest < ActionDispatch::IntegrationTest
       },
       headers: auth(:active)
     assert_response 422
-    assert_match(/Invalid attribute.*bogus/, json_response['errors'].join(' '))
+    assert_match(/ArgumentError: Attribute selection list cannot be empty/, json_response['errors'].join(' '))
   end
 
   test "get index with select= (invalid attribute type) responds 422" do
@@ -106,7 +106,7 @@ class CollectionsApiTest < ActionDispatch::IntegrationTest
       },
       headers: auth(:active)
     assert_response 422
-    assert_match(/Invalid attribute.*bogus/, json_response['errors'].join(' '))
+    assert_match(/ArgumentError: Attribute selection list cannot be empty/, json_response['errors'].join(' '))
   end
 
   test "controller 404 response is json" do