diff --git a/test/models/bot/alegre_3_test.rb b/test/models/bot/alegre_3_test.rb index f1dcb4d6c..b343afc9a 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,