Project

General

Profile

Patch #5899 » 5899-show-gravatar.patch

Go MAEDA, 2019-05-12 18:30

View differences:

app/views/users/edit.html.erb
<%= delete_link user_path(@user) if User.current != @user %>
</div>
<%= title [l(:label_user_plural), users_path], @user.login %>
<%=
page_title = title [l(:label_user_plural), users_path], @user.login
page_title.insert(page_title.rindex(' ') + 1, avatar(@user, :size => "24"))
%>
<%= render_tabs user_settings_tabs %>
test/functional/users_controller_test.rb
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
(4-4/4)