summaryrefslogtreecommitdiff
path: root/test/factories/call_forwards.rb
blob: bdb899ec8295b4b87a8d52e64b72ac8408ba322a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Read about factories at http://github.com/thoughtbot/factory_girl

FactoryGirl.define do
  factory :call_forward do
    association :phone_number
    #OPTIMIZE Make sure that the phone_number's phone_numberable
    # isn't a phone_book_entry but a sip_account.
    #f.sequence( :call_forward_case_id ) { |n| CallForwardCase.where(:value => "always").first.id }
    #f.association :call_forward_case
    sequence( :call_forward_case_id  ) { |n| 1 }
    sequence( :destination  ) { |n| "20#{n}" }
    sequence( :to_voicemail ) { |n| false }
    sequence( :timeout      ) { |n| nil }
    sequence( :source       ) { |n| nil }
    sequence( :depth        ) { |n| 5 }
    sequence( :active       ) { |n| false }
  end
end