summaryrefslogtreecommitdiff
path: root/spec/commands/licenses_spec.rb
blob: c8d5ff739e6ca5410d62fec77deca83cca7ca8a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
end