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

Version Path
eac_tools-0.36.1 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.36.0 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.35.0 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.34.0 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.33.0 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.32.0 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.31.1 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.31.0 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.30.0 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.29.0 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.28.0 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.27.2 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.27.1 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.27.0 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.26.0 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.25.1 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.25.0 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.24.1 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.24.0 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb
eac_tools-0.23.0 sub/avm-tools/spec/lib/avm/projects/stereotypes/ruby_gem_spec.rb