Minor fixes

pull/16382/head
cgonzalez 3 years ago
parent a7df0ece38
commit e21e6db344

@ -5,11 +5,9 @@ include CartoDB::Importer2
module FileUtils module FileUtils
class Entry_ # rubocop:disable ClassAndModuleCamelCase, DepartmentName class Entry_ # rubocop:disable ClassAndModuleCamelCase, DepartmentName
def copy_file(dest) def copy_file(dest)
Open3.capture2('cp', path, dest) Open3.capture2('cp', path, dest)
end end
end end
end end
@ -227,8 +225,7 @@ describe Unp do
end end
it 'raises if unp is not found' do it 'raises if unp is not found' do
Open3.stub(:capture3).and_return([0, 0, 1]) Open3.stubs('capture3').with('which unp').returns [0, 0, 1]
unp = Unp.new unp = Unp.new
expect { unp.command_for('wadus') }.to raise_error InstallError expect { unp.command_for('wadus') }.to raise_error InstallError

Loading…
Cancel
Save