diff --git a/spec/factories/user.rb b/spec/factories/user.rb index f746a62ba..22b93d2d6 100644 --- a/spec/factories/user.rb +++ b/spec/factories/user.rb @@ -3,7 +3,7 @@ FactoryBot.define do sequence(:email) { "test#{SecureRandom.hex}@example.com" } name { "Danny Rojas" } password { "pAssword1" } - organisation { association :organisation } + organisation role { "data_provider" } phone { "1234512345123" } trait :data_provider do