Sha256: fc4f66e215d4b6bf0db885903bfb16ed0ff52a809465b74fb69ad9648922237d

Contents?: true

Size: 482 Bytes

Versions: 7

Compression:

Stored size: 482 Bytes

Contents

FactoryGirl.define do

  factory :admin_policy do
    title "Test APO"
    permissions [{type: 'group', name: 'public', access: 'read'}]
    default_permissions [{type: 'group', name: 'public', access: 'read'}]
  end

  factory :content_model do
    title "Test Object"
    permissions [{type: 'group', name: 'public', access: 'read'}]

    trait :has_apo do
      admin_policy { create(:admin_policy) }
    end

    factory :content_model_has_apo, :traits => [:has_apo]
  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fcrepo_admin-0.3.5 spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.3.4 spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.3.3 spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.3.2 spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.3.1 spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.3.0 spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.2.4 spec/factories/fcrepo_admin_factories.rb