Create system comments on events

This commit is contained in:
Jorge Manrubia
2025-04-29 20:30:05 +02:00
parent e03f1f7f9b
commit 4ff55df2e0
6 changed files with 79 additions and 4 deletions
+4
View File
@@ -1,6 +1,10 @@
require "test_helper"
class Card::CloseableTest < ActiveSupport::TestCase
setup do
Current.session = sessions(:david)
end
test "closed scope" do
assert_equal [ cards(:shipping) ], Card.closed
assert_not_includes Card.open, cards(:shipping)