2015-12-28 13:07:13 +03:00
|
|
|
RSpec.shared_context 'stubbed calls to KnifeFactory.instance', stubbed_knife: true do
|
2016-01-14 13:43:42 +03:00
|
|
|
let(:stubbed_knife) { instance_double(KnifeCommands) }
|
2015-12-28 13:07:13 +03:00
|
|
|
before do
|
|
|
|
|
allow(KnifeFactory).to receive(:instance) { stubbed_knife }
|
|
|
|
|
end
|
|
|
|
|
end
|