Sha256: 1fe5d74514ee4ea3f193b1d9d29aced0b2809f3681cbf93d8d2fd30efd4b82e0

Contents?: true

Size: 1.25 KB

Versions: 16

Compression:

Stored size: 1.25 KB

Contents

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

describe "Ignored Dependencies" do
  # As a developer
  # I want to ignore certain dependencies
  # To avoid frequently changing reports about dependencies I know will always be approved

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

  before do
    developer.create_empty_project
    developer.execute_command 'license_finder dependencies add ignored_dep Whatever'
  end

  specify "are excluded from reports" do
    developer.execute_command 'license_finder ignored_dependencies add ignored_dep'

    developer.run_license_finder
    expect(developer).to_not be_seeing 'ignored_dep'
    developer.execute_command('license_finder report')
    expect(developer).to_not be_seeing 'ignored_dep'
  end

  specify "appear in the CLI" do
    developer.execute_command 'license_finder ignored_dependencies add ignored_dep'
    expect(developer).to be_seeing 'ignored_dep'

    developer.execute_command 'license_finder ignored_dependencies list'
    expect(developer).to be_seeing 'ignored_dep'

    developer.execute_command 'license_finder ignored_dependencies remove ignored_dep'
    developer.execute_command 'license_finder ignored_dependencies list'
    expect(developer).to_not be_seeing 'ignored_dep'
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

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