diff --git a/test/models/explainer_test.rb b/test/models/explainer_test.rb index c9010238f..44b0bd64a 100644 --- a/test/models/explainer_test.rb +++ b/test/models/explainer_test.rb @@ -99,12 +99,12 @@ def setup } # Index two paragraphs and title when the explainer is created - Bot::Alegre.stubs(:request).with('post', '/similarity/async/text', anything).times(3) + Bot::Alegre.stubs(:request).with('post', '/similarity/sync/text', anything).times(3) Bot::Alegre.stubs(:request).with('delete', '/text/similarity/', anything).never ex = create_explainer description: description # Update the index when paragraphs change - Bot::Alegre.stubs(:request).with('post', '/similarity/async/text', anything).times(2) + Bot::Alegre.stubs(:request).with('post', '/similarity/sync/text', anything).times(2) Bot::Alegre.stubs(:request).with('delete', '/text/similarity/', anything).once ex = Explainer.find(ex.id) ex.description = 'Now this is the only paragraph'