summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-05-20 08:51:04 +0000
committerGo MAEDA <maeda@farend.jp>2019-05-20 08:51:04 +0000
commitda78e654f13b9b13e1584bac91dae9631c12f63e (patch)
treee876514c819c08da93fb3e0799a52cc1feaa3e45 /test
parentc341b62fed7f165a5945f66d48bebf92767fde67 (diff)
downloadredmine-da78e654f13b9b13e1584bac91dae9631c12f63e.tar.gz
redmine-da78e654f13b9b13e1584bac91dae9631c12f63e.zip
Display user's gravatar when editing profile (#5899).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18180 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/users_controller_test.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb
index d1fdd2150..2798c023d 100644
--- a/test/functional/users_controller_test.rb
+++ b/test/functional/users_controller_test.rb
@@ -420,8 +420,11 @@ class UsersControllerTest < Redmine::ControllerTest
def test_edit
- get :edit, :params => {:id => 2}
+ with_settings :gravatar_enabled => '1' do
+ get :edit, :params => {:id => 2}
+ end
assert_response :success
+ assert_select 'h2>a+img.gravatar'
assert_select 'input[name=?][value=?]', 'user[login]', 'jsmith'
end