Files
fizzy/test/models/bubble/commentable_test.rb
T
Kevin McConnell 6157d8b4bd Start watching when participating on a bubble
If you're added as an assignee, or if you comment, then your watching
preference will be toggled on.
2025-02-26 10:53:03 +00:00

14 lines
395 B
Ruby

require "test_helper"
class Bubble::CommentableTest < ActiveSupport::TestCase
test "creating a comment on a bubble makes the creator watch the bubble" do
assert_not bubbles(:text).watched_by?(users(:kevin))
with_current_user(:kevin) do
bubbles(:text).capture Comment.new(body: "This sounds interesting!")
end
assert bubbles(:text).watched_by?(users(:kevin))
end
end