Files
fizzy/test/models/bubble/commentable_test.rb
T
2025-02-26 10:53:03 +00:00

15 lines
445 B
Ruby

require "test_helper"
class Bubble::CommentableTest < ActiveSupport::TestCase
test "creating a comment on a bubble makes the creator watch the bubble" do
buckets(:writebook).subscriptions.destroy_all
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