Files
fizzy/test/controllers/readings_controller_test.rb
T
Kevin McConnell 782259a678 Events should track published now
Previously when an item was `created`, we'd track the event, update the
summary text, and broadcast the notifications. But now that we have a
draft state, we shold do all of this when it's published instead.
2025-01-15 10:58:00 +00:00

16 lines
390 B
Ruby

require "test_helper"
class ReadingsControllerTest < ActionDispatch::IntegrationTest
setup do
sign_in_as :kevin
end
test "index" do
assert_changes -> { notifications(:logo_published_kevin).reload.read? }, from: false, to: true do
post bucket_bubble_readings_url(bubbles(:logo).bucket, bubbles(:logo)), as: :turbo_stream
end
assert_response :success
end
end