diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-05-05 00:05:16 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2016-05-05 00:05:16 +0300 |
commit | f18ec70743375024aa7ec7bb86c437ca9198e729 (patch) | |
tree | 4fe1fb68fbb9ced4ff5f5514f755916554d2d384 /app | |
parent | fad7b392dc633fb689e657af8b7fad346ede416e (diff) |
Backport changes from gitlab-org/gitlab-ee!372
Mostly replaces several Spinach tests with RSpec Feature tests.
Diffstat (limited to 'app')
-rw-r--r-- | app/helpers/projects_helper.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 3d5e61d2c18..62e8c03cc81 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -209,7 +209,8 @@ module ProjectsHelper end def default_url_to_repo(project = @project) - if default_clone_protocol == "ssh" + case default_clone_protocol + when 'ssh' project.ssh_url_to_repo else project.http_url_to_repo |