Skip to content

Commit

Permalink
Fix rubocop
Browse files Browse the repository at this point in the history
Signed-off-by: Shane Lattanzio <[email protected]>
  • Loading branch information
Manifaust authored and xtreme-shane-lattanzio committed Mar 29, 2018
1 parent fdd63fb commit a49af96
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions spec/lib/license_finder/package_managers/pip_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ module LicenseFinder
let(:pip) { Pip.new(project_path: Pathname(root)) }
it_behaves_like 'a PackageManager'


let(:requirements_txt) do
<<eos
<<INPUT
tox>=2.3.1,<3.0.0
docutils>=0.10
# botocore and the awscli packages are typically developed
Expand All @@ -23,7 +22,7 @@ module LicenseFinder
rsa>=3.1.2,<=3.5.0
wheel==0.24.0
PyYAML>=3.10,<=3.12"
eos
INPUT
end

let(:dependency_json) do
Expand All @@ -46,7 +45,7 @@ module LicenseFinder

it 'should call pip install with the requirements file' do
expect(SharedHelpers::Cmd).to receive(:run).with('pip install -r requirements.txt')
.and_return([dependency_json, '', cmd_success])
.and_return([dependency_json, '', cmd_success])
pip.prepare
end

Expand All @@ -55,13 +54,12 @@ module LicenseFinder

it 'should use the provided requirements file' do
expect(SharedHelpers::Cmd).to receive(:run).with("pip install -r #{@user_provided_requirements}")
.and_return([dependency_json, '', cmd_success])
.and_return([dependency_json, '', cmd_success])
pip.prepare
end
end
end


describe '.current_packages' do
def stub_pip(stdout)
allow(pip).to receive('`').with(/license_finder_pip.py/).and_return(stdout)
Expand Down

0 comments on commit a49af96

Please sign in to comment.