Sha256: 5b0c6ca10175b0b06a61718ca4180436394c04e1b3267a2d12f29322a54e8401

Contents?: true

Size: 939 Bytes

Versions: 16

Compression:

Stored size: 939 Bytes

Contents

require_relative '../../support/feature_helper'

describe "Blacklisted licenses" do
  # As a lawyer
  # I want to blacklist certain licenses
  # So that any dependencies with only these licenses cannot be approved

  let(:developer) { LicenseFinder::TestingDSL::User.new }
  let(:lawyer) { LicenseFinder::TestingDSL::User.new }

  before do
    developer.create_empty_project
    lawyer.execute_command 'license_finder blacklist add BSD'
    developer.execute_command 'license_finder dependencies add blacklisted_dep BSD'
  end

  specify "prevent packages from being approved" do
    developer.execute_command 'license_finder approval add blacklisted_dep'

    lawyer.run_license_finder
    expect(lawyer).to be_seeing 'blacklisted_dep'
  end

  specify "override the whitelist" do
    developer.execute_command 'license_finder whitelist add BSD'

    lawyer.run_license_finder
    expect(lawyer).to be_seeing 'blacklisted_dep'
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
license_finder-3.0.4 features/features/configure/blacklist_licenses_spec.rb
license_finder-3.0.2 features/features/configure/blacklist_licenses_spec.rb
license_finder-3.0.1 features/features/configure/blacklist_licenses_spec.rb
license_finder-3.0.0 features/features/configure/blacklist_licenses_spec.rb
license_finder-2.1.2 features/features/configure/blacklist_licenses_spec.rb
license_finder-2.1.1 features/features/configure/blacklist_licenses_spec.rb
license_finder-2.1.0 features/features/configure/blacklist_licenses_spec.rb
license_finder-2.1.0.rc9 features/features/configure/blacklist_licenses_spec.rb
license_finder-2.1.0.rc8 features/features/configure/blacklist_licenses_spec.rb
license_finder-2.1.0.rc7 features/features/configure/blacklist_licenses_spec.rb
license_finder-2.1.0.rc6 features/features/configure/blacklist_licenses_spec.rb
license_finder-2.1.0.rc5 features/features/configure/blacklist_licenses_spec.rb
license_finder-2.1.0.rc4 features/features/configure/blacklist_licenses_spec.rb
license_finder-2.1.0.rc3 features/features/configure/blacklist_licenses_spec.rb
license_finder-2.1.0.rc2 features/features/configure/blacklist_licenses_spec.rb
license_finder-2.1.0.rc1 features/features/configure/blacklist_licenses_spec.rb