Added FactoryBot Organization factory.
This commit is contained in:
parent
0f884b5342
commit
d00f82b63a
1 changed files with 19 additions and 0 deletions
19
spec/factories/organization.rb
Normal file
19
spec/factories/organization.rb
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
FactoryBot.define do
|
||||||
|
sequence :test_organization_name do |n|
|
||||||
|
"TestOrganization#{n}"
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
FactoryBot.define do
|
||||||
|
|
||||||
|
factory :organization do
|
||||||
|
name { generate(:test_organization_name) }
|
||||||
|
shared true
|
||||||
|
domain ''
|
||||||
|
domain_assignment false
|
||||||
|
active true
|
||||||
|
note ''
|
||||||
|
created_by_id 1
|
||||||
|
updated_by_id 1
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue