test "search collections with 'any' operator" do
authorize_with :active
get :index, {
- where: { any: ['contains', '7f9102c395f4ffc5e3'] }
+ where: { any: ['contains', 'd0bc8c7f34be170a7b7b'] }
}
assert_response :success
found = assigns(:objects).collect(&:portable_data_hash)
- assert_equal 2, found.count
- assert_equal true, !!found.index('1f4b0bc7583c2a7f9102c395f4ffc5e3+45')
+ assert_equal 1, found.count
+ assert_equal true, !!found.index('5bd9c1ad0bc8c7f34be170a7b7b39089+45')
end
[false, true].each do |permit_unsigned|