From b54c0d09568bb993049bd162a482d967303b6df2 Mon Sep 17 00:00:00 2001 From: Devin Gaffney Date: Thu, 7 Sep 2023 09:19:37 -0700 Subject: [PATCH] update stub --- test/models/bot/alegre_3_test.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/models/bot/alegre_3_test.rb b/test/models/bot/alegre_3_test.rb index f1dcb4d6c3..b343afc9a4 100644 --- a/test/models/bot/alegre_3_test.rb +++ b/test/models/bot/alegre_3_test.rb @@ -585,7 +585,8 @@ def self.extract_project_medias_from_context(search_result) pm1 = create_project_media team: @team, media: create_uploaded_audio pm2 = create_project_media team: @team, media: create_uploaded_audio pm3 = create_project_media team: @team, media: create_uploaded_audio - Bot::Alegre.stubs(:request_api).with('get', '/audio/similarity/', @params, 'body').returns({ + params = {:url => nil, :context => {:has_custom_id => true, :team_id => @team.id}, :match_across_content_types => true, :threshold => 0.9} + Bot::Alegre.stubs(:request_api).with('get', '/audio/similarity/', params, 'body').returns({ result: [ { id: 1,