Sha256: b795a906113e56615424ad9340f2d54662bbbe1f77e7f3db4b6f61bc201e9a23

Contents?: true

Size: 456 Bytes

Versions: 4

Compression:

Stored size: 456 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
    end

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

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fcrepo_admin-0.2.3 spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.2.0 spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.1.1 spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.1.0 spec/factories/fcrepo_admin_factories.rb