Files
fizzy/test/models/card/commentable_test.rb
T
2025-11-05 13:31:54 +01:00

15 lines
442 B
Ruby

require "test_helper"
class Card::CommentableTest < ActiveSupport::TestCase
test "creating a comment on a card makes the creator watch the card" do
boards(:writebook).access_for(users(:kevin)).access_only!
assert_not cards(:text).watched_by?(users(:kevin))
with_current_user(:kevin) do
cards(:text).comments.create!(body: "This sounds interesting!")
end
assert cards(:text).watched_by?(users(:kevin))
end
end