diff --git a/lib/license_finder/package_managers/mix.rb b/lib/license_finder/package_managers/mix.rb index 4d27eccd2..ce671add2 100644 --- a/lib/license_finder/package_managers/mix.rb +++ b/lib/license_finder/package_managers/mix.rb @@ -21,6 +21,10 @@ def self.package_management_command 'mix' end + def self.prepare_command + 'mix deps.get' + end + private def mix_output diff --git a/spec/lib/license_finder/package_managers/mix_spec.rb b/spec/lib/license_finder/package_managers/mix_spec.rb index 18fa2e1b6..6e800a9e5 100644 --- a/spec/lib/license_finder/package_managers/mix_spec.rb +++ b/spec/lib/license_finder/package_managers/mix_spec.rb @@ -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