Sha256: c516e7b405fe468144b1e35b5bd6ef6299080b4637f7af8225cac7873c22989b

Contents?: true

Size: 856 Bytes

Versions: 70

Compression:

Stored size: 856 Bytes

Contents

# frozen_string_literal: true

require 'avm/launcher/context'
require 'avm/launcher/instances/base'
require 'avm/eac_ruby_base1/launcher_stereotypes/base/publish'

RSpec.describe ::Avm::EacRubyBase1::LauncherStereotypes::Base::Publish do
  let(:context) do
    r = temp_launcher_context
    avm_eac_ruby_base1_source(target_path: r.root.real.to_pathname.join('ruby_gem_stub'))
    r
  end

  describe '#publish' do
    let(:instance) { context.instance('/ruby_gem_stub') }

    it 'dries run publish for Ruby Gems' do
      allow_any_instance_of(described_class).to receive(:gem_versions_uncached).and_return([]) # rubocop:disable RSpec/AnyInstance
      expect(instance).to be_a ::Avm::Launcher::Instances::Base
      context.publish_options = { confirm: false, new: true, stereotype: 'RubyGem' }
      described_class.new(instance).run
    end
  end
end

Version data entries

70 entries across 70 versions & 1 rubygems

Version Path
eac_tools-0.45.0 sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish_spec.rb
eac_tools-0.44.0 sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish_spec.rb
eac_tools-0.43.0 sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish_spec.rb
eac_tools-0.42.0 sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish_spec.rb
eac_tools-0.41.0 sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish_spec.rb
eac_tools-0.40.0 sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish_spec.rb
eac_tools-0.39.0 sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish_spec.rb
eac_tools-0.38.0 sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish_spec.rb
eac_tools-0.37.2 sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish_spec.rb
eac_tools-0.37.1 sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish_spec.rb