From e86be26f4366557410d27f99f0e766e15ce2fefd Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Thu, 28 Aug 2025 21:24:23 -0500 Subject: [PATCH] Update test This test is a little naive because it matches cards in stages regardless of engagement status unlike the actual conroller. For example `@new_card` gets created and moved to a stage but it's actually not even published and so shouldn't be stageable. --- test/models/filter_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/models/filter_test.rb b/test/models/filter_test.rb index 6dce00f62..537cf384c 100644 --- a/test/models/filter_test.rb +++ b/test/models/filter_test.rb @@ -18,7 +18,7 @@ class FilterTest < ActiveSupport::TestCase assert_equal [ cards(:layout) ], filter.cards filter = users(:david).filters.new stage_ids: [ workflow_stages(:qa_on_hold).id ] - assert_equal [ cards(:logo), @new_card ], filter.cards + assert_equal [ cards(:logo), cards(:layout), @new_card, cards(:text) ], filter.cards filter = users(:david).filters.new assignment_status: "unassigned", collection_ids: [ @new_collection.id ] assert_equal [ @new_card ], filter.cards