Sha256: 2dfa69a24579617eff97c807803cd8a79eeea30edde448cc71715aa445ce27f7

Contents?: true

Size: 439 Bytes

Versions: 15

Compression:

Stored size: 439 Bytes

Contents

FactoryBot.define do
  factory :kadmin_organization, class: Kadmin::Organization do
    initialize_with do
      Kadmin::Organization.where(name: 'offerista').first_or_initialize # take from seeded database
    end
  end

  factory :kadmin_organization_not_offerista, class: Kadmin::Organization do
    initialize_with do
      Kadmin::Organization.where(name: 'profital').first_or_initialize # take from seeded database
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
kadmin-1.3.0 test/factories/organizations.rb
kadmin-1.2.1 test/factories/organizations.rb
kadmin-1.2.0 test/factories/organizations.rb
kadmin-1.1.1 test/factories/organizations.rb
kadmin-1.1.0 test/factories/organizations.rb
kadmin-1.0.9 test/factories/organizations.rb
kadmin-1.0.8 test/factories/organizations.rb
kadmin-1.0.7 test/factories/organizations.rb
kadmin-1.0.6 test/factories/organizations.rb
kadmin-1.0.5 test/factories/organizations.rb
kadmin-1.0.4 test/factories/organizations.rb
kadmin-1.0.3 test/factories/organizations.rb
kadmin-1.0.2 test/factories/organizations.rb
kadmin-1.0.1 test/factories/organizations.rb
kadmin-1.0.0 test/factories/organizations.rb