Sha256: 9d907334b68dda898d605da43b42291e2a649d68d0f03079b92ab290d04b4c79

Contents?: true

Size: 659 Bytes

Versions: 3

Compression:

Stored size: 659 Bytes

Contents

require "spec_helper"

describe "bundle licenses" do
  before :each do
    install_gemfile <<-G
      source "file://#{gem_repo1}"
      gem "rails"
      gem "with_license"
    G
  end

  it "prints license information for all gems in the bundle" do
    bundle "licenses"

    expect(out).to include("actionpack: Unknown")
    expect(out).to include("with_license: MIT")
  end

  it "performs an automatic bundle install" do
    gemfile <<-G
      source "file://#{gem_repo1}"
      gem "rails"
      gem "with_license"
      gem "foo"
    G

    bundle "config auto_install 1"
    bundle :licenses
    expect(out).to include("Installing foo 1.0")
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bundler-prehistoric-1.6.2.2 spec/commands/licenses_spec.rb
bundler-prehistoric-1.6.2.1 spec/commands/licenses_spec.rb
bundler-prehistoric-1.6.2 spec/commands/licenses_spec.rb