fluke/devops-service/spec/shared_contexts/stubbed_knife.rb
2015-12-28 13:07:13 +03:00

6 lines
221 B
Ruby

RSpec.shared_context 'stubbed calls to KnifeFactory.instance', stubbed_knife: true do
let(:stubbed_knife) { double('KnifeCommands') }
before do
allow(KnifeFactory).to receive(:instance) { stubbed_knife }
end
end