summaryrefslogtreecommitdiff
path: root/test/factories/phone_numbers.rb
blob: 3b25938929a63f0a7ecc8e19c9bff959126a2ebb (plain)
1
2
3
4
5
6
7
8
9
# Read about factories at http://github.com/thoughtbot/factory_girl

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