From ddb95f0dd0463b884860238fd250092bffed0e78 Mon Sep 17 00:00:00 2001 From: Ash McKenzie Date: Mon, 20 Aug 2018 14:34:24 +1000 Subject: GitlabConfig, GitlabShell & GitlabKeys spec fixes GitlabConfig spec was relying upon real config.yml --- spec/gitlab_shell_spec.rb | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'spec/gitlab_shell_spec.rb') diff --git a/spec/gitlab_shell_spec.rb b/spec/gitlab_shell_spec.rb index 135a474..22b21fd 100644 --- a/spec/gitlab_shell_spec.rb +++ b/spec/gitlab_shell_spec.rb @@ -68,13 +68,13 @@ describe GitlabShell do allow_any_instance_of(GitlabConfig).to receive(:audit_usernames).and_return(false) end - describe :initialize do + describe '#initialize' do let(:ssh_cmd) { 'git-receive-pack' } it { expect(subject.gl_id).to eq gl_id } end - describe :parse_cmd do + describe '#parse_cmd' do describe 'git' do context 'w/o namespace' do let(:ssh_args) { %w(git-upload-pack gitlab-ci.git) } @@ -161,7 +161,7 @@ describe GitlabShell do end end - describe :exec do + describe '#exec' do let(:gitaly_message) do JSON.dump( 'repository' => { 'relative_path' => repo_name, 'storage_name' => 'default' }, @@ -410,7 +410,7 @@ describe GitlabShell do end end - describe :validate_access do + describe '#validate_access' do let(:ssh_cmd) { "git-upload-pack gitlab-ci.git" } describe 'check access with api' do @@ -442,7 +442,7 @@ describe GitlabShell do end end - describe :api do + describe '#api' do let(:shell) { GitlabShell.new(gl_id) } subject { shell.send :api } -- cgit v1.2.1