summaryrefslogtreecommitdiff
path: root/test/factories/phone_numbers.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-30 22:17:32 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-30 22:17:32 +0100
commitaf79440bd75d2cffb2eb0ba43b5cfe918a78162c (patch)
treefd6c4dab5dc56fed5f616ddec20e1f82780f20fe /test/factories/phone_numbers.rb
parent648f51a0ac97675d6cdf6a4b0c3c75bc9ea23168 (diff)
parent9f14a9a6573db607b79124524088803812454515 (diff)
Merge branch 'rename_factory_class' into develop
Conflicts: Gemfile.lock
Diffstat (limited to 'test/factories/phone_numbers.rb')
-rw-r--r--test/factories/phone_numbers.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/factories/phone_numbers.rb b/test/factories/phone_numbers.rb
index 74b43cc..3b25938 100644
--- a/test/factories/phone_numbers.rb
+++ b/test/factories/phone_numbers.rb
@@ -1,7 +1,9 @@
# Read about factories at http://github.com/thoughtbot/factory_girl
-Factory.define :phone_number do |f|
- f.sequence(:name) { |n| "Name #{n}" }
- f.sequence(:number) { |n| "(0)30 227 #{n}" }
- f.association :phone_numberable, :factory => :phone_book_entry
+FactoryGirl.define do
+ factory :phone_number do
+ sequence(:name) { |n| "Name #{n}" }
+ sequence(:number) { |n| "(0)30 227 #{n}" }
+ association :phone_numberable, :factory => :phone_book_entry
+ end
end \ No newline at end of file