summaryrefslogtreecommitdiff
path: root/spec/workers
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2018-01-09 11:21:23 +0000
committerDouwe Maan <douwe@gitlab.com>2018-01-09 11:21:23 +0000
commit2e4a1b3b78a76103198180acf873de8470d7cecf (patch)
treeda0c62bfc0eb8fbc1960330d6f8b3be91d986639 /spec/workers
parent639cfdc221617f13ee08e673e0b5e51efc344744 (diff)
parent9edd9a5ea21a1b95ffc7b399c5c11bc9a7c4c318 (diff)
downloadgitlab-ce-2e4a1b3b78a76103198180acf873de8470d7cecf.tar.gz
Merge branch 'jej/backport-authorized-keys-to-ce' into 'master'
Backport authorized_keys Closes gitlab-ee#3953 See merge request gitlab-org/gitlab-ce!16014
Diffstat (limited to 'spec/workers')
-rw-r--r--spec/workers/gitlab_shell_worker_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/workers/gitlab_shell_worker_spec.rb b/spec/workers/gitlab_shell_worker_spec.rb
new file mode 100644
index 00000000000..6b222af454d
--- /dev/null
+++ b/spec/workers/gitlab_shell_worker_spec.rb
@@ -0,0 +1,12 @@
+require 'spec_helper'
+
+describe GitlabShellWorker do
+ let(:worker) { described_class.new }
+
+ describe '#perform with add_key' do
+ it 'calls add_key on Gitlab::Shell' do
+ expect_any_instance_of(Gitlab::Shell).to receive(:add_key).with('foo', 'bar')
+ worker.perform(:add_key, 'foo', 'bar')
+ end
+ end
+end