Skip to content

Commit

Permalink
[Added] Removed the removal of nested projects
Browse files Browse the repository at this point in the history
Signed-off-by: Li Tai <ltai@pivotal.io>
  • Loading branch information
xtreme-lisheng-tai committed Nov 20, 2018
1 parent fcead98 commit 6e1941c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/license_finder/project_finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ def collect_project_path(all_paths)
is_active_project = active_project?(potential_project_path)
return unless is_active_project

remove_nested(potential_project_path, all_paths)
potential_project_path.to_s
end

Expand Down
4 changes: 2 additions & 2 deletions spec/lib/license_finder/project_finder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ module LicenseFinder
ProjectFinder.new('/path/to/projects').find_projects
end

it 'rejects nested dependencies' do
it 'finds nested dependencies' do
finder = ProjectFinder.new('spec/fixtures/composite')

active_projects = finder.find_projects
expect(has_project_path?(active_projects, 'pivotal/foo')).to be false
expect(has_project_path?(active_projects, 'pivotal/foo')).to be true
end
end

Expand Down

0 comments on commit 6e1941c

Please sign in to comment.