6157d8b4bd
If you're added as an assignee, or if you comment, then your watching preference will be toggled on.
14 lines
395 B
Ruby
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
|