Fix tests, remove workflow controllers

This commit is contained in:
Jorge Manrubia
2025-09-28 18:50:26 +02:00
parent b0e62a3a4f
commit e14262dc01
9 changed files with 4 additions and 156 deletions
+2 -2
View File
@@ -28,7 +28,7 @@ class Card::EntropicTest < ActiveSupport::TestCase
cards(:logo).update!(last_active_at: 1.day.ago - entropy_configurations("37s_account").auto_postpone_period)
cards(:shipping).update!(last_active_at: 1.day.from_now - entropy_configurations("37s_account").auto_postpone_period)
assert_difference -> { Card.not_now.count }, +1 do
assert_difference -> { Card.postponed.count }, +1 do
Card.auto_postpone_all_due
end
@@ -40,7 +40,7 @@ class Card::EntropicTest < ActiveSupport::TestCase
cards(:logo).update!(last_active_at: 1.day.ago - entropy_configurations(:writebook_collection).auto_postpone_period)
cards(:shipping).update!(last_active_at: 1.day.from_now - entropy_configurations(:writebook_collection).auto_postpone_period)
assert_difference -> { Card.not_now.count }, +1 do
assert_difference -> { Card.postponed.count }, +1 do
Card.auto_postpone_all_due
end
+2 -2
View File
@@ -30,8 +30,8 @@ class Card::PostponableTest < ActiveSupport::TestCase
logo.postpone
assert_includes Card.not_now, logo
assert_not_includes Card.not_now, text
assert_includes Card.postponed, logo
assert_not_includes Card.postponed, text
assert_includes Card.active, text
assert_not_includes Card.active, logo