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.28.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.27.2 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.27.1 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.27.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.26.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.25.1 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.25.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.24.1 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.24.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.23.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.22.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.21.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.20.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.19.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.18.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.17.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.16.1 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.16.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.15.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb
eac_tools-0.14.0 sub/avm-tools/spec/lib/avm/launcher/instances/base_spec.rb