Sha256: f86de3d870c07ffb4f977b2ab8d789f2902df59440900f015ad06170d1b272e5
Contents?: true
Size: 1.02 KB
Versions: 15
Compression:
Stored size: 1.02 KB
Contents
FactoryBot.define do factory :organization do contact_email { Faker::Internet.email } description { 'a great org' } locale { 'en' } settings {} name { 'an-organization' } book end factory :private_organization, parent: :organization do name { 'the-private-org' } end factory :public_organization, parent: :organization do public { true } name { 'the-public-org' } login_methods { Mumukit::Login::Settings.login_methods } end factory :base, parent: :public_organization do name { 'base' } end factory :test_organization, parent: :public_organization do name { 'test' } immersible { true } book { create(:book, name: 'test', slug: 'mumuki/mumuki-the-book') } end factory :another_test_organization, parent: :test_organization do name { 'another-test' } book { create(:book, name: 'another-test', slug: 'mumuki/mumuki-another-book') } end trait :skip_unique_name_validation do to_create { |instance| instance.save(validate: false) } end end
Version data entries
15 entries across 15 versions & 1 rubygems