diff options
author | Eric Eastwood <contact@ericeastwood.com> | 2017-11-20 22:48:33 +0300 |
---|---|---|
committer | Eric Eastwood <contact@ericeastwood.com> | 2017-11-20 23:17:39 +0300 |
commit | 2d980cb71c952483da3cffe2ea368a6904c9a0a5 (patch) | |
tree | dfef7c523d0abc6fc09a700ffdb959c535ac2896 /spec/features/commits_spec.rb | |
parent | d41e66cb632cf4a51428c87a07cbdd182e3e0697 (diff) |
Fix commits list 500 with multi-file editor new_repo cookie
Fix https://gitlab.com/gitlab-org/gitlab-ce/issues/39821
/<namespace>/<project>/commmits/master
Diffstat (limited to 'spec/features/commits_spec.rb')
-rw-r--r-- | spec/features/commits_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/features/commits_spec.rb b/spec/features/commits_spec.rb index 479fb713297..1e83137f8a9 100644 --- a/spec/features/commits_spec.rb +++ b/spec/features/commits_spec.rb @@ -202,5 +202,12 @@ describe 'Commits' do expect(page).to have_content("committed #{commit.committed_date.strftime("%b %d, %Y")}") end end + + it 'shows the ref switcher with the multi-file editor enabled', :js do + set_cookie('new_repo', 'true') + visit project_commits_path(project, branch_name) + + expect(find('.js-project-refs-dropdown')).to have_content branch_name + end end end |