diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2019-03-07 14:02:48 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2019-03-07 14:02:48 +0000 |
commit | dd56b63ecce6eab527b99442e74811f0fc830812 (patch) | |
tree | b674ac40e6e2c635e6853b3fec5fca91cc0e9769 /spec | |
parent | 02e464b6363201998cbef478bfe34e4fefadcfa6 (diff) | |
parent | 6a3a28bfdec6feeebd880d048f8577906b48aaa7 (diff) | |
download | gitlab-ce-dd56b63ecce6eab527b99442e74811f0fc830812.tar.gz |
Merge branch 'fix-blob-editor-deleting-content' into 'master'
Fixed the blob editor deleting all content for files
Closes #58578
See merge request gitlab-org/gitlab-ce!25865
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/projects/blobs/edit_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/features/projects/blobs/edit_spec.rb b/spec/features/projects/blobs/edit_spec.rb index 828f6f9921e..57d21f3e182 100644 --- a/spec/features/projects/blobs/edit_spec.rb +++ b/spec/features/projects/blobs/edit_spec.rb @@ -49,6 +49,15 @@ describe 'Editing file blob', :js do end end + it 'updates the content of file with a number as file path' do + project.repository.create_file(user, '1', 'test', message: 'testing', branch_name: branch) + visit project_blob_path(project, tree_join(branch, '1')) + + edit_and_commit + + expect(page).to have_content 'NextFeature' + end + context 'from blob file path' do before do visit project_blob_path(project, tree_join(branch, file_path)) |