Sha256: bedecb97bdba5db77446e29417eeb581efd351b8d3d6b2654df973fa90fd6af0

Contents?: true

Size: 575 Bytes

Versions: 4

Compression:

Stored size: 575 Bytes

Contents

# frozen_string_literal: true

require 'avm/rspec/launcher_controller'

RSpec.shared_context 'with_launcher' do
  let(:launcher_controller) { Avm::Rspec::LauncherController.new }

  before do
    Avm::Launcher::Context.current = launcher_controller.new_context
    launcher_controller.remotes_dir = Dir.mktmpdir
    allow(ProgressBar).to receive(:create).and_return(double.as_null_object)
  end

  delegate :application_source_path, :context_set, :init_git, :init_remote, :temp_context,
           :projects_root, :projects_root=, :touch_commit, to: :launcher_controller
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
avm-0.94.1 lib/avm/rspec/shared_examples/with_launcher.rb
eac_tools-0.98.0 sub/avm/lib/avm/rspec/shared_examples/with_launcher.rb
avm-0.94.0 lib/avm/rspec/shared_examples/with_launcher.rb
eac_tools-0.94.0 sub/avm/lib/avm/rspec/shared_examples/with_launcher.rb