Skip to content

Commit

Permalink
add stub
Browse files Browse the repository at this point in the history
  • Loading branch information
DGaffney committed Jan 30, 2024
1 parent 1900350 commit 3431663
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/models/fact_check_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@ def setup
end

test "should create fact check without optional fields" do
Bot::Alegre.stubs(:send_field_to_similarity_index).returns({"success": true})
assert_difference 'FactCheck.count' do
create_fact_check url: nil, title: random_string, summary: nil
end
Bot::Alegre.unstub(:send_field_to_similarity_index)
end

test "should not create fact check without user" do
Expand Down

0 comments on commit 3431663

Please sign in to comment.