Sha256: 0b6d0af14f564e870b2ec5b397e6c23d6ca974d9557dfdc2c3e94e46b5577faa
Contents?: true
Size: 701 Bytes
Versions: 5
Compression:
Stored size: 701 Bytes
Contents
FactoryGirl.define do factory :user, :class => User do |u| email 'jilluser@example.com' password 'password' end factory :archivist, aliases: [:user_with_fixtures], :class => User do |u| email 'archivist1@example.com' password 'password' end factory :user_with_mail, :class => User do |u| email 'archivist2@example.com' password 'password' after(:create) do |user| message = '<span class="batchid ui-helper-hidden">fake_batch_noid</span>You\'ve got mail.' User.batchuser().send_message(user, message, "Sample notification.") end end factory :curator, :class => User do |u| email 'curator1@example.com' password 'password' end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
sufia-3.7.2 | spec/factories/users.rb |
sufia-3.7.1 | spec/factories/users.rb |
sufia-3.7.0 | spec/factories/users.rb |
sufia-3.6.1 | spec/factories/users.rb |
sufia-3.6.0 | spec/factories/users.rb |