summaryrefslogtreecommitdiff
path: root/test/controllers/users_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/controllers/users_controller_test.rb')
-rw-r--r--test/controllers/users_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/controllers/users_controller_test.rb b/test/controllers/users_controller_test.rb
index 846e74c..8bcd10b 100644
--- a/test/controllers/users_controller_test.rb
+++ b/test/controllers/users_controller_test.rb
@@ -18,7 +18,7 @@ class UsersControllerTest < ActionController::TestCase
test "should create user" do
assert_difference('User.count') do
- post :create, user: { }
+ post :create, user: { groups: @user.groups, name: @user.name, pw_hash: @user.pw_hash }
end
assert_redirected_to user_path(assigns(:user))
@@ -35,7 +35,7 @@ class UsersControllerTest < ActionController::TestCase
end
test "should update user" do
- patch :update, id: @user, user: { }
+ patch :update, id: @user, user: { groups: @user.groups, name: @user.name, pw_hash: @user.pw_hash }
assert_redirected_to user_path(assigns(:user))
end