blob: 6b222af454d8c8190d8f3049585f1e9f35cde11d (
plain)
1
2
3
4
5
6
7
8
9
10
11
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
|