summaryrefslogtreecommitdiff
path: root/spec/features/projects/blobs
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-10-27 12:08:33 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-10-27 12:08:33 +0000
commiteb004dc626d3a1c9497e8b9dc0f3f578afd05fd9 (patch)
tree1cf688ab28dd0629e74a6a458d8ed5bee1c59642 /spec/features/projects/blobs
parentfae19e0b68830e140d93c7463368a16c13887b54 (diff)
downloadgitlab-ce-eb004dc626d3a1c9497e8b9dc0f3f578afd05fd9.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/projects/blobs')
-rw-r--r--spec/features/projects/blobs/edit_spec.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/spec/features/projects/blobs/edit_spec.rb b/spec/features/projects/blobs/edit_spec.rb
index c30c8dda852..3f1c10b3688 100644
--- a/spec/features/projects/blobs/edit_spec.rb
+++ b/spec/features/projects/blobs/edit_spec.rb
@@ -179,12 +179,14 @@ RSpec.describe 'Editing file blob', :js do
end
context 'with protected branch' do
- before do
- visit project_edit_blob_path(project, tree_join(protected_branch, file_path))
- end
-
it 'shows blob editor with patch branch' do
- expect(find('.js-branch-name').value).to eq('patch-1')
+ freeze_time do
+ visit project_edit_blob_path(project, tree_join(protected_branch, file_path))
+
+ epoch = Time.now.strftime('%s%L').last(5)
+
+ expect(find('.js-branch-name').value).to eq "#{user.username}-protected-branch-patch-#{epoch}"
+ end
end
end
end