added dmail test

This commit is contained in:
albert
2010-02-20 18:08:22 -05:00
parent 1a7197807a
commit 0bb52fd63a
13 changed files with 483 additions and 1 deletions

8
test/factories/dmail.rb Normal file
View 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