Files
fizzy/test/controllers/comments_controller_test.rb
T
2025-01-07 14:47:31 +00:00

16 lines
380 B
Ruby

require "test_helper"
class CommentsControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in_as :kevin
end
test "create" do
assert_difference "bubbles(:logo).messages.comments.count", +1 do
post bucket_bubble_comments_url(buckets(:writebook), bubbles(:logo), params: { comment: { body: "Agreed." } })
end
assert_response :success
end
end