Deterministic fixture UUIDs

This commit is contained in:
Kevin McConnell
2025-11-12 12:28:29 +00:00
committed by Mike Dalessio
parent 1959e15f7e
commit 63f8a9af78
5 changed files with 58 additions and 5 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ class Board::AccessibleTest < ActiveSupport::TestCase
boards(:writebook).update! all_access: false
boards(:writebook).accesses.revise granted: users(:david, :jz), revoked: users(:kevin)
assert_equal users(:david, :jz), boards(:writebook).users
assert_equal users(:david, :jz).to_set, boards(:writebook).users.to_set
boards(:writebook).accesses.grant_to users(:kevin)
assert_includes boards(:writebook).users.reload, users(:kevin)
+1 -1
View File
@@ -39,7 +39,7 @@ class Notifier::EventNotifierTest < ActiveSupport::TestCase
Notifier.for(events(:logo_published)).notify
assert_equal cards(:logo), Notification.last.source.eventable
assert_equal cards(:logo), Notification.order(created_at: :desc).first.source.eventable
end
test "assignment events only create a notification for the assignee" do