diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-21 18:09:26 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-21 18:09:26 +0000 |
commit | 07d811cd3cf4d3a1802363532756bf69cfc6346f (patch) | |
tree | 4c0488ee52df65d58ba5c97a4e83bf1971469e34 /spec/features/projects/blobs/blob_show_spec.rb | |
parent | 71c6e099a8b019ab7749e43b63885d52de60e316 (diff) | |
download | gitlab-ce-07d811cd3cf4d3a1802363532756bf69cfc6346f.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/projects/blobs/blob_show_spec.rb')
-rw-r--r-- | spec/features/projects/blobs/blob_show_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/features/projects/blobs/blob_show_spec.rb b/spec/features/projects/blobs/blob_show_spec.rb index f9e3ff1670c..74e5dc9f8c3 100644 --- a/spec/features/projects/blobs/blob_show_spec.rb +++ b/spec/features/projects/blobs/blob_show_spec.rb @@ -195,10 +195,11 @@ RSpec.describe 'File blob', :js, feature_category: :projects do end end - it 'successfully changes ref when the ref name matches the project name' do - project.repository.create_branch(project.name) + # Regression test for https://gitlab.com/gitlab-org/gitlab/-/issues/330947 + it 'successfully changes ref when the ref name matches the project path' do + project.repository.create_branch(project.path) - visit_blob('files/js/application.js', ref: project.name) + visit_blob('files/js/application.js', ref: project.path) switch_ref_to('master') aggregate_failures do |