From 3b4f6038ff25a6614de119b5f19df8fd33b48717 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Fri, 12 Dec 2014 21:40:25 +0000 Subject: [PATCH] Adds a test for editing a registered user. git-svn-id: http://svn.redmine.org/redmine/trunk@13742 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/users_controller_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb index 56a0292f6..e39afbee7 100644 --- a/test/functional/users_controller_test.rb +++ b/test/functional/users_controller_test.rb @@ -284,6 +284,14 @@ class UsersControllerTest < ActionController::TestCase assert_equal User.find(2), assigns(:user) end + def test_edit_registered_user + assert User.find(2).register! + + get :edit, :id => 2 + assert_response :success + assert_select 'a', :text => 'Activate' + end + def test_update ActionMailer::Base.deliveries.clear put :update, :id => 2, -- 2.39.5