Sha256: 4779736d893aae6b6d33d4ab23a59d0a96b8f5d02b5a106a635737b981ac9000

Contents?: true

Size: 814 Bytes

Versions: 2

Compression:

Stored size: 814 Bytes

Contents

require 'rspec/mocks'

# This is a stub you can use in your tests that has the
# same interface as the original executor
module ExecutorDouble
  def executor_double
    executor = instance_double('Executor')
    executor.stub(:start_section)
    executor.stub(:start_task)
    executor.stub(:task_succeeded)
    executor.stub(:task_failed)
    executor.stub(:skip_task)
    executor.stub(:info)
    executor.stub(:get_path_in_home)
    executor.stub(:get_path_in_working_directory)
    executor.stub(:get_path_for)
    executor.stub(:execute)
    executor.stub(:execute_interactive)
    executor.stub(:silent_execute)
    executor.stub(:rm_rf)
    executor.stub(:ln_s)
    executor.stub(:ask?)
    executor.stub(:clone_repo)
    executor.stub(:pull_repo)
    executor.stub(:command_exists?)
    executor
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
exogenesis-1.0.0 spec/support/executor_double.rb
exogenesis-0.2.0 spec/support/executor_double.rb