summaryrefslogtreecommitdiff
path: root/test/functional/phone_models_controller_test.rb
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-30 22:17:32 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-30 22:17:32 +0100
commitaf79440bd75d2cffb2eb0ba43b5cfe918a78162c (patch)
treefd6c4dab5dc56fed5f616ddec20e1f82780f20fe /test/functional/phone_models_controller_test.rb
parent648f51a0ac97675d6cdf6a4b0c3c75bc9ea23168 (diff)
parent9f14a9a6573db607b79124524088803812454515 (diff)
Merge branch 'rename_factory_class' into develop
Conflicts: Gemfile.lock
Diffstat (limited to 'test/functional/phone_models_controller_test.rb')
-rw-r--r--test/functional/phone_models_controller_test.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/functional/phone_models_controller_test.rb b/test/functional/phone_models_controller_test.rb
index 2d1a87a..199be45 100644
--- a/test/functional/phone_models_controller_test.rb
+++ b/test/functional/phone_models_controller_test.rb
@@ -4,21 +4,21 @@ class PhoneModelsControllerTest < ActionController::TestCase
setup do
# Create a tenant:
- @tenant = Factory.create(:tenant)
+ @tenant = FactoryGirl.create(:tenant)
# Create a User who is member of the Tenant but has no special rights:
- @user = Factory.create(:user)
+ @user = FactoryGirl.create(:user)
@tenant.tenant_memberships.create(:user_id => @user.id)
@user.update_attributes!(:current_tenant_id => @tenant.id)
# Create a User who is member of the Tenant and has super admin rights:
- @super_admin = Factory.create(:user)
+ @super_admin = FactoryGirl.create(:user)
@tenant.tenant_memberships.create(:user_id => @super_admin.id)
@super_admin.update_attributes!(:current_tenant_id => @tenant.id)
# Create a PhoneModel
#
- @phone_model = Factory.create(:phone_model)
+ @phone_model = FactoryGirl.create(:phone_model)
end
[ '@user.id', '' ].each do |user_id_code|
@@ -44,7 +44,7 @@ class PhoneModelsControllerTest < ActionController::TestCase
session[:user_id] = eval( user_id_code )
assert_no_difference('PhoneModel.count') do
- post :create, manufacturer_id: @phone_model.manufacturer_id, phone_model: Factory.build(:phone_model,
+ post :create, manufacturer_id: @phone_model.manufacturer_id, phone_model: FactoryGirl.build(:phone_model,
:manufacturer_id => @phone_model.manufacturer_id).attributes
end
end
@@ -106,7 +106,7 @@ class PhoneModelsControllerTest < ActionController::TestCase
# # add routes first.
# test "should create phone_model as super admin" do
# assert_difference('PhoneModel.count') do
- # post :create, phone_model: Factory.build(:phone_model,
+ # post :create, phone_model: FactoryGirl.build(:phone_model,
# :manufacturer_id => @phone_model.manufacturer_id).attributes
# end
#