summaryrefslogtreecommitdiff
path: root/test/functional/call_forwards_controller_test.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/functional/call_forwards_controller_test.rb
parent5ad8203ce4f1bfea997960d0b52c626dea24b944 (diff)
parent6f69c1a85055ec7c2515719d79d2a7a4e60cec50 (diff)
Merge branch 'develop'5.1-beta1
Diffstat (limited to 'test/functional/call_forwards_controller_test.rb')
-rw-r--r--test/functional/call_forwards_controller_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/call_forwards_controller_test.rb b/test/functional/call_forwards_controller_test.rb
index 0993623..da8e6c9 100644
--- a/test/functional/call_forwards_controller_test.rb
+++ b/test/functional/call_forwards_controller_test.rb
@@ -3,27 +3,27 @@ require 'test_helper'
class CallForwardsControllerTest < ActionController::TestCase
setup do
- @user = Factory.create(:user)
+ @user = FactoryGirl.create(:user)
- #@tenant = Factory.create(:tenant)
+ #@tenant = FactoryGirl.create(:tenant)
#@tenant.tenant_memberships.create(:user_id => @user.id)
#@user.update_attributes!(:current_tenant_id => @tenant.id)
- @sip_account = Factory.create(
+ @sip_account = FactoryGirl.create(
:sip_account,
:sip_accountable => @user,
)
@user.sip_accounts << @sip_account
@sip_account = @user.sip_accounts.last
- @phone_number = Factory.create(
+ @phone_number = FactoryGirl.create(
:phone_number,
:phone_numberable => @sip_account,
)
@sip_account.phone_numbers << @phone_number
@phone_number = @sip_account.phone_numbers.last
- @call_forward = Factory.create(
+ @call_forward = FactoryGirl.create(
:call_forward,
:phone_number => @phone_number,
)
@@ -50,7 +50,7 @@ class CallForwardsControllerTest < ActionController::TestCase
# assert_difference('CallForward.count') do
# post :create,
# :phone_number_id => @phone_number.to_param,
-# :call_forward => Factory.attributes_for(
+# :call_forward => FactoryGirl.attributes_for(
# :call_forward
# )
# end