Sha256: db0b01499c3bad8f31bac644b94ff35ca985cd77b9a7cbe9f3b73f6df97d0933
Contents?: true
Size: 888 Bytes
Versions: 3
Compression:
Stored size: 888 Bytes
Contents
FactoryGirl.define do factory :web_admin_user, :class => 'WebAdmin::User' do email "user@email.com" password "12345678" password_confirmation "12345678" factory :web_admin_user_with_permission do transient do permissions_count 1 end after(:create) do |user, evaluator| create_list(:manager_user, evaluator.permissions_count, user: user) create_list(:manager_video, evaluator.permissions_count, user: user) create_list(:manager_post, evaluator.permissions_count, user: user) create_list(:manager_album, evaluator.permissions_count, user: user) create_list(:manager_image, evaluator.permissions_count, user: user) create_list(:manager_insitutional, evaluator.permissions_count, user: user) create_list(:manager_event, evaluator.permissions_count, user: user) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
web_admin-0.1.0 | spec/factories/admin_web_users.rb |
web_admin-0.0.2 | spec/factories/admin_web_users.rb |
web_admin-0.0.1 | spec/factories/admin_web_users.rb |