summaryrefslogtreecommitdiff
path: root/spec/helpers/projects_helper_spec.rb
diff options
context:
space:
mode:
authorDavid H. Wilkins <dwilkins@conecuh.com>2019-08-02 18:18:09 -0500
committerDavid H. Wilkins <dwilkins@conecuh.com>2019-08-02 18:18:09 -0500
commit6391eeec3078f97fac6f6ef92ca0d8c8f0068667 (patch)
tree7d56653fad34d643afe9989550cd9f4dcbe37378 /spec/helpers/projects_helper_spec.rb
parentbce8b66d516e906f6131d8a6dcae797def5288b6 (diff)
downloadgitlab-ce-6391eeec3078f97fac6f6ef92ca0d8c8f0068667.tar.gz
git-user-related local test failures
Some of the tests fail locally due to the git user being different than it is on the test runners. I'd really like to be able to run all of the tests locally.
Diffstat (limited to 'spec/helpers/projects_helper_spec.rb')
-rw-r--r--spec/helpers/projects_helper_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/helpers/projects_helper_spec.rb b/spec/helpers/projects_helper_spec.rb
index 3716879c458..d4cf15ad5f8 100644
--- a/spec/helpers/projects_helper_spec.rb
+++ b/spec/helpers/projects_helper_spec.rb
@@ -478,7 +478,7 @@ describe ProjectsHelper do
it 'returns the command to push to create project over SSH' do
allow(Gitlab::CurrentSettings.current_application_settings).to receive(:enabled_git_access_protocol) { 'ssh' }
- expect(helper.push_to_create_project_command(user)).to eq('git push --set-upstream git@localhost:john/$(git rev-parse --show-toplevel | xargs basename).git $(git rev-parse --abbrev-ref HEAD)')
+ expect(helper.push_to_create_project_command(user)).to eq("git push --set-upstream #{Gitlab.config.gitlab.user}@localhost:john/$(git rev-parse --show-toplevel | xargs basename).git $(git rev-parse --abbrev-ref HEAD)")
end
end