Files
fizzy/test/models/notifier/created_test.rb
T
Kevin McConnell df260840ab Simplify test
2025-01-14 13:29:39 +00:00

16 lines
429 B
Ruby

require "test_helper"
class Notifier::CreatedTest < ActiveSupport::TestCase
test "creates a notification for each recipient" do
notifications = Notifier.for(events(:logo_created)).generate
assert_equal users(:kevin, :jz).sort, notifications.map(&:user).sort
end
test "links to the bubble" do
Notifier.for(events(:logo_created)).generate
assert_equal bubbles(:logo), Notification.last.resource
end
end