Move boosts under bubbles

But also remove the need for a bucket nesting
This commit is contained in:
David Heinemeier Hansson
2025-04-06 21:04:28 +02:00
parent 5c9f630fee
commit c06802856e
9 changed files with 18 additions and 14 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ class BubbleMessagesTest < ActionDispatch::IntegrationTest
assert_equal "created", bubble.messages.last.messageable.events.sole.action
# Boost it
post bucket_bubble_boosts_url(buckets(:writebook), bubble, format: :turbo_stream)
post bubble_boosts_path(bubble, format: :turbo_stream)
assert_equal 1, bubble.messages.count
assert_predicate bubble.messages.last, :event_summary?
assert_equal 2, bubble.messages.last.event_summary.events.count