Skip to content

Commit

Permalink
change factory back #2020
Browse files Browse the repository at this point in the history
  • Loading branch information
stuzart committed Oct 25, 2024
1 parent 78f3d10 commit cbf647d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/factories/observation_units.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
policy { FactoryBot.create(:public_policy) }
association :contributor, factory: :person, strategy: :create
after(:build) do |a|
a.study = FactoryBot.create(:study, contributor: a.contributor) if a.study.nil?
a.study ||= FactoryBot.create(:study, contributor: a.contributor)
end
end

Expand Down

0 comments on commit cbf647d

Please sign in to comment.