summaryrefslogtreecommitdiff
path: root/spec/workers/gitlab_shell_worker_spec.rb
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2018-02-07 17:40:46 -0600
committerClement Ho <ClemMakesApps@gmail.com>2018-02-07 17:40:46 -0600
commitc1c74e608625eab143f44ef6940e64cca6af0a0c (patch)
treec5ca4a8a39946f54878a3ecde6b4adcda11d2d9b /spec/workers/gitlab_shell_worker_spec.rb
parentcecea7529fb37893af6bf514a53e239a3be1eea6 (diff)
parent8900b23eab6abd5a6c01278fa0da18d5bed98491 (diff)
downloadgitlab-ce-c1c74e608625eab143f44ef6940e64cca6af0a0c.tar.gz
Merge branch 'master' into fix-no-template
Diffstat (limited to 'spec/workers/gitlab_shell_worker_spec.rb')
-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