semester_process_mails.rb 333 Bytes
Newer Older
1
2
3
4
5
6
FactoryBot.define do
  factory :semester_process_mail do
    semester_process_volunteer
    sent_at { Time.zone.local(2018, 8, 12) }
    subject 'mail subject'
    body 'Mail body'
Kaspar Vollenweider's avatar
Kaspar Vollenweider committed
7
8
9
10

    after(:build) do |sem_proc_mail|
      sem_proc_mail.sent_by = sem_proc_mail.semester_process_volunteer.semester_process.creator
    end
11
12
  end
end