summaryrefslogtreecommitdiff
path: root/test/factories/phone_numbers.rb
blob: 74b43cc773f5e331ac16caf0cb9b1cda6b3e83d9 (plain)
1
2
3
4
5
6
7
# 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 
end