Sha256: 175f9e4151a79b82cc8e534c0a0c1f55e99728e425abdecc0effc7a8963b39dd

Contents?: true

Size: 628 Bytes

Versions: 11

Compression:

Stored size: 628 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 :collection do
    title "Test Collection"
    permissions [{type: 'group', name: 'public', access: 'read'}]
  end

  factory :item do
    sequence(:title) { |n| "Test Item [#{n}]" }
    permissions [{type: 'group', name: 'public', access: 'read'}]
  end

  factory :part do
    sequence(:title) { |n| "Test Part [#{n}]" }
    permissions [{type: 'group', name: 'public', access: 'read'}]
  end

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fcrepo_admin-0.6.1 spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.6.0 spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.5.5 spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.5.5.pre spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.5.4 spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.5.3 spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.5.2 spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.5.1 spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.5.0 spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.4.1 spec/factories/fcrepo_admin_factories.rb
fcrepo_admin-0.4.0 spec/factories/fcrepo_admin_factories.rb