Sha256: b92e62d49f495c8ae3b9357f01b24f51e65f2b08f6b82451c42f94e1067518f5
Contents?: true
Size: 890 Bytes
Versions: 43
Compression:
Stored size: 890 Bytes
Contents
# frozen_string_literal: true require 'avm/projects/stereotypes/ruby_gem' RSpec.describe ::Avm::Projects::Stereotypes::RubyGem do describe '#load_gemspec' do let(:gemname) { 'avm-tools' } let(:self_gemspec) { ::File.join(ROOT_DIR, "#{gemname}.gemspec") } let(:stub_gemspec) { ::File.join(DUMMY_DIR, "#{gemname}_stub", "#{gemname}.gemspec") } let(:stub_expected_version) { '1.0.0.pre.stub' } it 'does not return same version for different gemspecs with same name' do stub_spec = ::Avm::Projects::Stereotypes::RubyGem.load_gemspec(stub_gemspec) expect(stub_spec.version).to eq(stub_expected_version) expect(stub_spec.name).to eq(gemname) self_spec = ::Avm::Projects::Stereotypes::RubyGem.load_gemspec(self_gemspec) expect(self_spec.version).not_to eq(stub_expected_version) expect(self_spec.name).to eq(gemname) end end end
Version data entries
43 entries across 43 versions & 1 rubygems