summaryrefslogtreecommitdiff
path: root/test/factories/call_forwards.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 15:33:06 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 15:33:06 +0100
commit39aa7132ceed3d4beab3a9b828e571bbfc67c07e (patch)
tree6c88289c9f99be0af8635636fcdf64102090e5ec /test/factories/call_forwards.rb
parent5ad8203ce4f1bfea997960d0b52c626dea24b944 (diff)
parent6f69c1a85055ec7c2515719d79d2a7a4e60cec50 (diff)
Merge branch 'develop'5.1-beta1
Diffstat (limited to 'test/factories/call_forwards.rb')
-rw-r--r--test/factories/call_forwards.rb28
1 files changed, 15 insertions, 13 deletions
diff --git a/test/factories/call_forwards.rb b/test/factories/call_forwards.rb
index d275e9d..bdb899e 100644
--- a/test/factories/call_forwards.rb
+++ b/test/factories/call_forwards.rb
@@ -1,16 +1,18 @@
# Read about factories at http://github.com/thoughtbot/factory_girl
-Factory.define :call_forward do |f|
- f.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
- f.sequence( :call_forward_case_id ) { |n| 1 }
- f.sequence( :destination ) { |n| "20#{n}" }
- f.sequence( :to_voicemail ) { |n| false }
- f.sequence( :timeout ) { |n| nil }
- f.sequence( :source ) { |n| nil }
- f.sequence( :depth ) { |n| 5 }
- f.sequence( :active ) { |n| false }
+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