diff options
Diffstat (limited to 'spec/factories/organizations.rb')
-rw-r--r-- | spec/factories/organizations.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/factories/organizations.rb b/spec/factories/organizations.rb deleted file mode 100644 index 7ff0493d140..00000000000 --- a/spec/factories/organizations.rb +++ /dev/null @@ -1,16 +0,0 @@ -# frozen_string_literal: true - -FactoryBot.define do - factory :organization do - sequence(:name) { |n| "Organization ##{n}" } - - trait :default do - id { Organization::DEFAULT_ORGANIZATION_ID } - name { 'Default' } - initialize_with do - # Ensure we only use one default organization - Organization.find_by(id: Organization::DEFAULT_ORGANIZATION_ID) || new(**attributes) - end - end - end -end |