Sha256: 89aa0a12e48d66c6c1aa1e8e40b58bf8103308a951cfde66df1a62cbf4d5b1b2

Contents?: true

Size: 734 Bytes

Versions: 47

Compression:

Stored size: 734 Bytes

Contents

require "spec_helper"

describe Lambdagem::Build do
  let(:builder) do
    Lambdagem::Build.new(gem, s3: "lambdagems")
  end

  context("gem with version number") do
    let(:gem) { "byebug-9.1.0" }

    it "gem info" do
      expect(builder.gem_name).to eq "byebug"
      expect(builder.gem_version).to eq "9.1.0"
    end
  end

  context("gem without version number") do
    let(:gem) { "byebug" }

    it "gem info" do
      expect(builder.gem_name).to eq "byebug"
      expect(builder.gem_version).to eq nil
    end

    it "create_gemfile" do
      builder.create_gemfile
      content = IO.read("/tmp/lambdagem/Gemfile")
      expect(content).to include("byebug")
      expect(content).not_to include("9.1.0")
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
jets-1.0.1 vendor/lambdagem/spec/lib/build_spec.rb
jets-1.0.0 vendor/lambdagem/spec/lib/build_spec.rb
jets-0.10.4 vendor/lambdagem/spec/lib/build_spec.rb
jets-0.10.3 vendor/lambdagem/spec/lib/build_spec.rb
jets-0.10.2 vendor/lambdagem/spec/lib/build_spec.rb
jets-0.10.1 vendor/lambdagem/spec/lib/build_spec.rb
jets-0.10.0 vendor/lambdagem/spec/lib/build_spec.rb
jets-0.9.2 vendor/lambdagem/spec/lib/build_spec.rb
jets-0.9.1 vendor/lambdagem/spec/lib/build_spec.rb
jets-0.9.0 vendor/lambdagem/spec/lib/build_spec.rb
jets-0.8.18 vendor/lambdagem/spec/lib/build_spec.rb
jets-0.8.17 vendor/lambdagem/spec/lib/build_spec.rb
jets-0.8.15 vendor/lambdagem/spec/lib/build_spec.rb
jets-0.8.14 vendor/lambdagem/spec/lib/build_spec.rb
jets-0.8.13 vendor/lambdagem/spec/lib/build_spec.rb
jets-0.8.12 vendor/lambdagem/spec/lib/build_spec.rb
jets-0.8.11 vendor/lambdagem/spec/lib/build_spec.rb
jets-0.8.10 vendor/lambdagem/spec/lib/build_spec.rb
jets-0.8.9 vendor/lambdagem/spec/lib/build_spec.rb
jets-0.8.8 vendor/lambdagem/spec/lib/build_spec.rb