X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/439e1417599cad4e65d506a11b583a6ebabc7604..91dc5f1d7f5ad9eb2640f6089e2d0476cbf87c8e:/services/api/test/integration/select_test.rb diff --git a/services/api/test/integration/select_test.rb b/services/api/test/integration/select_test.rb index 20575654e6..a7bd545179 100644 --- a/services/api/test/integration/select_test.rb +++ b/services/api/test/integration/select_test.rb @@ -5,7 +5,7 @@ class SelectTest < ActionDispatch::IntegrationTest get "/arvados/v1/links", {:format => :json, :select => ['uuid', 'link_class']}, auth(:active) assert_response :success assert_equal json_response['items'].count, json_response['items'].select { |i| - i.count == 2 and i['uuid'] != nil and i['link_class'] != nil + i.count == 3 and i['uuid'] != nil and i['link_class'] != nil }.count end @@ -18,7 +18,8 @@ class SelectTest < ActionDispatch::IntegrationTest assert_response :success distinct = json_response['items'] - assert distinct.count < links.count, "distinct count should be less than link count" + assert_operator(distinct.count, :<, links.count, + "distinct count should be less than link count") assert_equal links.uniq.count, distinct.count end