diff options
author | Stan Hu <stanhu@gmail.com> | 2018-09-28 13:58:30 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-09-28 14:39:58 +0300 |
commit | b49e6b419acb3e8c129398167ec6b521fc686f8d (patch) | |
tree | 3b9256856b8becc0218b1055f19d637950ed0fd7 /spec/features | |
parent | 790eabcaf4a703d2776a0c6e0c461d35598e37b1 (diff) |
Fix Error 500 when forking projects with Gravatar disabled
When Gravatar is disabled, the "no avatar" is used, which failed
to revert to the colorful identity icons for namespaces.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/50254
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects/fork_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/projects/fork_spec.rb b/spec/features/projects/fork_spec.rb index cd5fef8238e..7c71b4c52e0 100644 --- a/spec/features/projects/fork_spec.rb +++ b/spec/features/projects/fork_spec.rb @@ -53,6 +53,18 @@ describe 'Project fork' do expect(current_path).to have_content(/#{user.namespace.name}/i) end + it 'shows avatars when Gravatar is disabled' do + stub_application_setting(gravatar_enabled: false) + + visit project_path(project) + + click_link 'Fork' + + page.within('.fork-thumbnail-container') do + expect(page).to have_css('div.identicon') + end + end + it 'shows the forked project on the list' do visit project_path(project) |