summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-12 21:40:25 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-12-12 21:40:25 +0000
commit3b4f6038ff25a6614de119b5f19df8fd33b48717 (patch)
treee7c8d92a0714b5023256b2ecfc894482e0d96039
parent47f331a63b7305b49fa03a44f98af79b7f62ea0a (diff)
downloadredmine-3b4f6038ff25a6614de119b5f19df8fd33b48717.tar.gz
redmine-3b4f6038ff25a6614de119b5f19df8fd33b48717.zip
Adds a test for editing a registered user.
git-svn-id: http://svn.redmine.org/redmine/trunk@13742 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/functional/users_controller_test.rb8
1 files changed, 8 insertions, 0 deletions
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,