From 16b720950262eb559358cf357f5098a142901665 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Mon, 9 Feb 2015 20:12:00 -0500 Subject: [PATCH] 5176: Update API Collections test to accommodate new fixtures. --- .../functional/arvados/v1/collections_controller_test.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/services/api/test/functional/arvados/v1/collections_controller_test.rb b/services/api/test/functional/arvados/v1/collections_controller_test.rb index c3b5303e11..61b0557085 100644 --- a/services/api/test/functional/arvados/v1/collections_controller_test.rb +++ b/services/api/test/functional/arvados/v1/collections_controller_test.rb @@ -345,14 +345,15 @@ EOS end test "search collections with 'any' operator" do + expect_pdh = collections(:docker_image).portable_data_hash authorize_with :active get :index, { - where: { any: ['contains', 'd0bc8c7f34be170a7b7b'] } + where: { any: ['contains', expect_pdh[5..25]] } } assert_response :success - found = assigns(:objects).collect(&:portable_data_hash) + found = assigns(:objects) assert_equal 1, found.count - assert_equal true, !!found.index('5bd9c1ad0bc8c7f34be170a7b7b39089+45') + assert_equal expect_pdh, found.first.portable_data_hash end [false, true].each do |permit_unsigned| -- 2.30.2