prefactor: update search to use published cards

We're about to make a change to assert that draft cards are not added
to the search index, and so let's make the intention behind these
tests clear first.
This commit is contained in:
Mike Dalessio
2026-01-22 14:09:03 -05:00
parent 1aea6850f0
commit bb2d3a59b5
6 changed files with 21 additions and 20 deletions
+1 -2
View File
@@ -4,8 +4,7 @@ class Filter::SearchTest < ActiveSupport::TestCase
include SearchTestHelper
test "deduplicate multiple results" do
card = @board.cards.create!(title: "Duplicate results test", description: "Have you had any haggis today?", creator: @user)
card.published!
card = @board.cards.create!(title: "Duplicate results test", description: "Have you had any haggis today?", creator: @user, status: "published")
card.comments.create(body: "I hate haggis.", creator: @user)
card.comments.create(body: "I love haggis.", creator: @user)