Skip to content

Commit

Permalink
Fix factory to create unique names
Browse files Browse the repository at this point in the history
  • Loading branch information
sandfortw committed Aug 9, 2023
1 parent b864587 commit a95b7d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/factories/case_groups.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FactoryBot.define do
factory :case_group do
casa_org { CasaOrg.first || create(:casa_org) }
name { "A family" }
sequence(:name) { |n| "Family #{n}" }

after(:build) do |case_group, _|
if case_group.case_group_memberships.empty?
Expand Down

0 comments on commit a95b7d4

Please sign in to comment.