Sha256: f0bb67dfd94b8b94cfa121dc6cb9854e6b80557ca51eebf6008363a4812806da

Contents?: true

Size: 1004 Bytes

Versions: 53

Compression:

Stored size: 1004 Bytes

Contents

# frozen_string_literal: true

require 'avm/launcher/context'
require 'avm/launcher/instances/base'

RSpec.describe ::Avm::Launcher::Instances::Base do
  describe '#options' do
    context 'when instance is "avm-tools_stub"' do
      let(:instance) { ::Avm::Launcher::Context.current.instance('/avm-tools_stub') }

      it { expect(instance).to be_a(described_class) }
      it { expect(instance.options.git_current_revision).to eq('origin/master') }
      it { expect(instance.options.git_publish_remote).to eq('publish') }
      it { expect(instance.options.publishable?).to eq(true) }
    end

    context 'when instance is "ruby_gem_stub"' do
      let(:instance) { ::Avm::Launcher::Context.current.instance('/ruby_gem_stub') }

      it { expect(instance.options.git_current_revision).to eq('git_current_revision_setted') }
      it { expect(instance.options.git_publish_remote).to eq('git_publish_remote_setted') }
      it { expect(instance.options.publishable?).to eq(false) }
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
eac_tools-0.44.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.43.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.42.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.41.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.40.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.39.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.38.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.37.2 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.37.1 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.37.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.36.1 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.36.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.35.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.34.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.33.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.32.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.31.1 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.31.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.30.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.29.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb