Fix tests

This commit is contained in:
Jorge Manrubia
2025-09-29 13:13:40 +02:00
parent 859a016a2e
commit 1bb8de8564
14 changed files with 552 additions and 165 deletions
@@ -21,12 +21,6 @@ class Card::Eventable::SystemCommenterTest < ActiveSupport::TestCase
end
end
test "card_staged" do
assert_system_comment "David moved this to In progress" do
@card.change_stage_to workflow_stages(:qa_in_progress)
end
end
test "card_closed" do
assert_system_comment "Closed as Done by David" do
@card.close
-12
View File
@@ -1,12 +0,0 @@
require "test_helper"
class Card::StagedTest < ActiveSupport::TestCase
setup { Current.session = sessions(:david) }
test "change stage" do
assert_difference -> { Event.where(action: :card_staged).count }, +1 do
cards(:logo).change_stage_to(workflow_stages(:qa_in_progress))
assert_equal workflow_stages(:qa_in_progress), cards(:logo).reload.stage
end
end
end