added dmail test
This commit is contained in:
8
test/factories/dmail.rb
Normal file
8
test/factories/dmail.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
Factory.define(:dmail) do |f|
|
||||
f.owner {|x| x.association(:user)}
|
||||
f.from_id {|x| x.owner_id}
|
||||
f.to {|x| x.association(:user)}
|
||||
f.title {Faker::Lorem.words}
|
||||
f.body {Faker::Lorem.sentences}
|
||||
f.is_read false
|
||||
end
|
||||
Reference in New Issue
Block a user