/
blueprints.rb
44 lines (36 loc) · 917 Bytes
/
blueprints.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
require 'machinist/active_record'
# Add your blueprints here.
#
# e.g.
# Post.blueprint do
# title { "Post #{sn}" }
# body { "Lorem ipsum..." }
# end
CallList.blueprint do
name { "name #{sn}" }
call_list_owners { [CallListOwner.make, CallListOwner.make] }
end
CallListOwner.blueprint do
user { User.make }
end
User.blueprint do
email { "username#{sn}@example.com" }
password { "password#{sn}" }
sms_email { "sms@example.com" }
time_zone { "Central Time (US & Canada)" }
phone_number_info { PhoneNumberInfo.make(:number => "123456789", :user => object) }
end
OncallAssignment.blueprint do
starts_at { DateTime.now - 7 }
ends_at { DateTime.now + 7 }
timezone_offset { 0 }
assigned_by { 'test' }
end
OncallAssignmentsGen.blueprint do
enable { true }
cycle_day { 1 }
cycle_time { DateTime.parse("8:00") }
timezone_offset { 0 }
end
PhoneNumberInfo.blueprint do
end