diff options
Diffstat (limited to 'test/factories/phone_book_entries.rb')
-rw-r--r-- | test/factories/phone_book_entries.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/factories/phone_book_entries.rb b/test/factories/phone_book_entries.rb new file mode 100644 index 0000000..7427886 --- /dev/null +++ b/test/factories/phone_book_entries.rb @@ -0,0 +1,7 @@ +# Read about factories at http://github.com/thoughtbot/factory_girl + +Factory.define :phone_book_entry do |f| + f.sequence(:last_name) { |n| "Lastname #{n}" } + f.sequence(:is_male) { |n| true } + f.association :phone_book +end |