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