Project

General

Profile

Defect #33355 » 33355.patch

Go MAEDA, 2020-11-30 10:39

View differences:

app/views/users/edit.html.erb
7 7

  
8 8
<%=
9 9
  page_title = title [l(:label_user_plural), users_path], @user.login
10
  page_title.insert(page_title.rindex(' ') + 1, avatar(@user))
10
  page_title.insert(page_title.rindex(' ') + 1, avatar(@user).to_s)
11 11
%>
12 12

  
13 13
<%= render_tabs user_settings_tabs %>
test/functional/users_controller_test.rb
819 819
    assert_response 404
820 820
  end
821 821

  
822
  def test_update_with_blank_email_should_not_raise_exception
823
    assert_no_difference 'User.count' do
824
      with_settings :gravatar_enabled => '1' do
825
        put :update, :params => {
826
          :id => 2,
827
          :user => {:mail => ''}
828
        }
829
      end
830
    end
831
    assert_response :success
832
    assert_select_error /Email cannot be blank/
833
  end
834

  
822 835
  def test_destroy
823 836
    assert_difference 'User.count', -1 do
824 837
      delete :destroy, :params => {:id => 2}
(2-2/2)