Skip to content

Commit

Permalink
CV2-5846: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
melsawy committed Dec 18, 2024
1 parent fdcfc4f commit 623cc49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/controllers/feeds_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def setup
@f = create_feed published: true
@f.teams = [@t1, @t2]
FeedTeam.update_all(shared: true)
Bot::Smooch.stubs(:search_for_similar_published_fact_checks).with('text', 'Foo', [@t1.id, @t2.id], 3, nil, @f.id, false).returns([@pm1, @pm2])
Bot::Smooch.stubs(:search_for_similar_published_fact_checks).with('text', 'Foo', [@t1.id, @t2.id], 3, nil, @f.id, nil, false).returns([@pm1, @pm2])
end

def teardown
Expand All @@ -44,7 +44,7 @@ def teardown
b.api_key = a
b.save!
create_team_user team: @t1, user: b
Bot::Smooch.stubs(:search_for_similar_published_fact_checks).with('text', 'Foo', [@t1.id], 3, nil, false).returns([@pm1])
Bot::Smooch.stubs(:search_for_similar_published_fact_checks).with('text', 'Foo', [@t1.id], 3, nil, nil, nil, false).returns([@pm1])

authenticate_with_token a
get :index, params: { filter: { type: 'text', query: 'Foo' } }
Expand Down

0 comments on commit 623cc49

Please sign in to comment.