summaryrefslogtreecommitdiff
path: root/test/factories/call_forwards.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:05:14 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:05:14 +0100
commiteaad37485fe59d0306c37cc038dda6d210052910 (patch)
tree072c4b0e33d442528555b82c415f5e7a1712b2b0 /test/factories/call_forwards.rb
parent3e706c2025ecc5523e81ad649639ef2ff75e7bac (diff)
parentb80bd744ad873f6fc43018bc4bfb90677de167bd (diff)
Merge branch 'develop'
Diffstat (limited to 'test/factories/call_forwards.rb')
-rw-r--r--test/factories/call_forwards.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/factories/call_forwards.rb b/test/factories/call_forwards.rb
new file mode 100644
index 0000000..d275e9d
--- /dev/null
+++ b/test/factories/call_forwards.rb
@@ -0,0 +1,16 @@
+# 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 }
+end