From d00f82b63ae5f6ba127df2f09cd1d682dd9ca619 Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Thu, 8 Mar 2018 13:14:04 +0100 Subject: [PATCH] Added FactoryBot Organization factory. --- spec/factories/organization.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 spec/factories/organization.rb diff --git a/spec/factories/organization.rb b/spec/factories/organization.rb new file mode 100644 index 000000000..c357be060 --- /dev/null +++ b/spec/factories/organization.rb @@ -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