Spike events system

This commit is contained in:
Jose Farias
2024-10-11 20:14:09 -05:00
parent 9e2ca7ad4b
commit ec7fc75054
46 changed files with 436 additions and 146 deletions
+11 -3
View File
@@ -1,7 +1,15 @@
require "test_helper"
class CommentsControllerTest < ActionDispatch::IntegrationTest
# test "the truth" do
# assert true
# end
setup do
sign_in_as :kevin
end
test "create" do
assert_difference "bubbles(:logo).comments.count", +1 do
post bucket_bubble_comments_url(buckets(:writebook), bubbles(:logo), params: { comment: { body: "Agreed." } })
end
assert_redirected_to bucket_bubble_url(buckets(:writebook), bubbles(:logo))
end
end