Skip to content

Commit

Permalink
[ADDED] Added prepare step for elixir projects
Browse files Browse the repository at this point in the history
[#153201654]

Signed-off-by: Shane Lattanzio <[email protected]>
  • Loading branch information
xtreme-lisheng-tai authored and xtreme-shane-lattanzio committed Nov 28, 2017
1 parent 66abece commit 38b08ea
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/license_finder/package_managers/mix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ def self.package_management_command
'mix'
end

def self.prepare_command
'mix deps.get'
end

private

def mix_output
Expand Down
7 changes: 7 additions & 0 deletions spec/lib/license_finder/package_managers/mix_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,12 @@ module LicenseFinder
expect(current_packages.map(&:install_path)).to eq([Pathname('foo/fs'), Pathname('foo/gettext'), Pathname('foo/uuid-refknown'), Pathname('foo/uuid')])
end
end

describe '.prepare_command' do
it 'returns the correct prepare method' do
expect(described_class.prepare_command).to eq('mix deps.get')
end
end

end
end

0 comments on commit 38b08ea

Please sign in to comment.