summaryrefslogtreecommitdiff
path: root/test/factories/phone_models.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/factories/phone_models.rb')
-rw-r--r--test/factories/phone_models.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/factories/phone_models.rb b/test/factories/phone_models.rb
new file mode 100644
index 0000000..8e6a50f
--- /dev/null
+++ b/test/factories/phone_models.rb
@@ -0,0 +1,6 @@
+# Read about factories at http://github.com/thoughtbot/factory_girl
+
+Factory.define :phone_model do |f|
+ f.sequence(:name) { |n| "Phone Model #{n}" }
+ f.association :manufacturer
+end