Sha256: 137d29ab753eaae99e49e80ed9b4da81e8fb6deef50fded0ca4cec1415e8b5e0
Contents?: true
Size: 524 Bytes
Versions: 6
Compression:
Stored size: 524 Bytes
Contents
def stub_ask(*args, &block) any_instance_of VMC::CLI do |interactive| stub(interactive).ask(*args, &block) end end def mock_ask(*args, &block) any_instance_of VMC::CLI do |interactive| mock(interactive).ask(*args, &block) end end def dont_allow_ask(*args) any_instance_of VMC::CLI do |interactive| dont_allow(interactive).ask(*args) end end def mock_with_progress(message) any_instance_of VMC::CLI do |interactive| mock(interactive).with_progress(message) { |_, block| block.call } end end
Version data entries
6 entries across 6 versions & 1 rubygems