From b80bd744ad873f6fc43018bc4bfb90677de167bd Mon Sep 17 00:00:00 2001 From: Stefan Wintermeyer Date: Mon, 17 Dec 2012 12:01:45 +0100 Subject: Start of GS5. --- test/factories/phone_books.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 test/factories/phone_books.rb (limited to 'test/factories/phone_books.rb') diff --git a/test/factories/phone_books.rb b/test/factories/phone_books.rb new file mode 100644 index 0000000..4aa8d07 --- /dev/null +++ b/test/factories/phone_books.rb @@ -0,0 +1,6 @@ +# Read about factories at http://github.com/thoughtbot/factory_girl + +Factory.define :phone_book do |f| + f.sequence(:name) { |n| "Phone book #{n}" } + f.association :phone_bookable, :factory => :user +end -- cgit v1.2.3