Sha256: 2a437f13dab3def7d7173c8ead878ae8fc817a7a2550a9be9312b1700ed61945

Contents?: true

Size: 662 Bytes

Versions: 3

Compression:

Stored size: 662 Bytes

Contents

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

describe 'Project path' do
  # As a developer
  # I want to set a project path
  # So that I can run license finder in a different Bundle environment to the project.

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

  specify 'can be overridden on the command line' do
    project = developer.create_ruby_app
    gem = developer.create_gem 'mitlicensed_dep', license: 'MIT', version: '1.2.3'
    project.depend_on gem
    developer.execute_command_outside_project("license_finder --quiet --project_path #{project.project_dir}")
    expect(developer).to be_seeing 'mitlicensed_dep, 1.2.3, MIT'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
license_finder-4.0.2 features/features/configure/set_project_path_spec.rb
license_finder-4.0.1 features/features/configure/set_project_path_spec.rb
license_finder-3.1.1 features/features/configure/set_project_path_spec.rb