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